From fbbc8e856a9dd5973005e46b6f214c26c16c80e1 Mon Sep 17 00:00:00 2001 From: "Ian A. Mason" Date: Tue, 17 Apr 2018 11:48:35 -0700 Subject: [PATCH] Slave to my master: gofmt. --- shared/logging.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/shared/logging.go b/shared/logging.go index 97cf658..86243f6 100644 --- a/shared/logging.go +++ b/shared/logging.go @@ -55,14 +55,12 @@ var loggingLevels = map[string]int{ } var loggingPrefixes = map[int]string{ - errorV: "Error: ", - warningV: "Warning: ", - infoV: "Info: ", - debugV: "Debug: ", + errorV: "Error: ", + warningV: "Warning: ", + infoV: "Info: ", + debugV: "Debug: ", } - - //loggingLevel is the user configured level of logging: ERROR, WARNING, INFO, DEBUG var loggingLevel = errorV @@ -97,7 +95,7 @@ func makeLogger(lvl int) func(format string, a ...interface{}) { //need to futz with it. prefix := loggingPrefixes[lvl] if len(prefix) > 0 { - loggingFilePointer.WriteString(prefix) + loggingFilePointer.WriteString(prefix) } loggingFilePointer.WriteString(msg) }