From 859e4749ae1dbfb1ec26decfe8e72994d7be4ba6 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Thu, 11 Apr 2019 18:52:54 -0400 Subject: [PATCH] lib: Clean up logging Since most of our logging goes through a single Logf command, we don't need the file name information any more. Our hierarchial logging is sufficient enough. Eventually we will replace the top-level logger with a more visually capable logging fixture. --- lib/hello.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/hello.go b/lib/hello.go index 2ebf16b9..a538cc34 100644 --- a/lib/hello.go +++ b/lib/hello.go @@ -29,11 +29,11 @@ import ( func hello(program, version string, flags Flags) { var start = time.Now().UnixNano() - var logFlags int - if flags.Debug || true { // TODO: remove || true - logFlags = log.LstdFlags | log.Lshortfile + logFlags := log.LstdFlags + if flags.Debug { + logFlags = logFlags + log.Lshortfile } - logFlags = (logFlags - log.Ldate) // remove the date for now + logFlags = logFlags - log.Ldate // remove the date for now log.SetFlags(logFlags) // un-hijack from capnslog...