forked from TrueCloudLab/restic
Add debug() function to khepri cmd and lib
This commit is contained in:
parent
4b0fae6099
commit
bd105b69a8
3 changed files with 44 additions and 1 deletions
|
@ -26,7 +26,7 @@ func initDebugLogger() *log.Logger {
|
|||
|
||||
// open logger
|
||||
l := log.New(io.MultiWriter(os.Stderr, f), "DEBUG: ", log.LstdFlags)
|
||||
fmt.Fprintf(os.Stderr, "logging activated, writing log file %s", filename)
|
||||
fmt.Fprintf(os.Stderr, "logging activated, writing log file %s\n", filename)
|
||||
l.Printf("khepri %s", version)
|
||||
|
||||
return l
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue