mirror of
https://github.com/restic/restic.git
synced 2025-08-24 08:21:10 +00:00
Add newline to debug output
This commit is contained in:
@@ -110,6 +110,10 @@ func Log(tag string, f string, args ...interface{}) {
|
||||
opts.m.Lock()
|
||||
defer opts.m.Unlock()
|
||||
|
||||
if f[len(f)-1] != '\n' {
|
||||
f += "\n"
|
||||
}
|
||||
|
||||
dbgprint := func() {
|
||||
fmt.Fprintf(os.Stderr, "DEBUG["+tag+"]: "+f, args...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user