Slave to my master: gofmt.

This commit is contained in:
Ian A. Mason 2018-04-17 11:48:35 -07:00
parent 3ea1db0849
commit fbbc8e856a

View File

@ -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)
}