diff --git a/cmd/restic/main.go b/cmd/restic/main.go index 2582a3781..cfef7c885 100644 --- a/cmd/restic/main.go +++ b/cmd/restic/main.go @@ -85,13 +85,11 @@ func needsPassword(cmd string) bool { var logBuffer = bytes.NewBuffer(nil) -func init() { +func main() { // install custom global logger into a buffer, if an error occurs // we can show the logs log.SetOutput(logBuffer) -} -func main() { debug.Log("main %#v", os.Args) debug.Log("restic %s compiled with %v on %v/%v", version, runtime.Version(), runtime.GOOS, runtime.GOARCH)