diff --git a/src/restic/debug/debug.go b/src/restic/debug/debug.go index 8d20b72e2..12b8c490a 100644 --- a/src/restic/debug/debug.go +++ b/src/restic/debug/debug.go @@ -146,7 +146,7 @@ func Log(tag string, f string, args ...interface{}) { current := time.Now() opts.last[process{tag, goroutine}] = current - if f[len(f)-1] != '\n' { + if len(f) == 0 || f[len(f)-1] != '\n' { f += "\n" }