forked from TrueCloudLab/restic
Add warnings via Warnf to the debug log
This commit is contained in:
parent
bdcafbc11c
commit
37aca6bec0
1 changed files with 1 additions and 0 deletions
|
@ -282,6 +282,7 @@ func Warnf(format string, args ...interface{}) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "unable to write to stderr: %v\n", err)
|
fmt.Fprintf(os.Stderr, "unable to write to stderr: %v\n", err)
|
||||||
}
|
}
|
||||||
|
debug.Log(format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// resolvePassword determines the password to be used for opening the repository.
|
// resolvePassword determines the password to be used for opening the repository.
|
||||||
|
|
Loading…
Reference in a new issue