]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
remote: remove duplicate call to log.SetFlags()
authorSimon Ruderich <simon@ruderich.org>
Sun, 4 Apr 2021 10:36:44 +0000 (12:36 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 07:41:12 +0000 (09:41 +0200)
cmd/safcm-remote/main.go

index ea81daf3eb400325f2f794128b8c498a3fb7894f..46a651aed947f96a3e136639da8f79b8ff366719 100644 (file)
@@ -29,12 +29,13 @@ import (
 )
 
 func main() {
+       // Timestamps are added by `safcm`
+       log.SetFlags(0)
+
        if len(os.Args) != 1 {
-               log.SetFlags(0)
                log.Fatalf("usage: %s", os.Args[0])
        }
 
-       log.SetFlags(0)
        err := mainLoop()
        if err != nil {
                log.Fatalf("%s: %v", os.Args[0], err)