mirror of
https://github.com/restic/restic.git
synced 2026-10-17 06:58:12 +00:00
Add debug() function to khepri cmd and lib
This commit is contained in:
1 parent
4b0fae6099
commit
bd105b69a8
3 files changed
+44
-1
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user