From: Simon Ruderich Date: Sun, 4 Apr 2021 10:36:44 +0000 (+0200) Subject: remote: remove duplicate call to log.SetFlags() X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=fcf8c31d7ce8cc47db014178d6bda936168c4a12;p=safcm%2Fsafcm.git remote: remove duplicate call to log.SetFlags() --- diff --git a/cmd/safcm-remote/main.go b/cmd/safcm-remote/main.go index ea81daf..46a651a 100644 --- a/cmd/safcm-remote/main.go +++ b/cmd/safcm-remote/main.go @@ -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)