From fcf8c31d7ce8cc47db014178d6bda936168c4a12 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 4 Apr 2021 12:36:44 +0200 Subject: [PATCH] remote: remove duplicate call to log.SetFlags() --- cmd/safcm-remote/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.45.2