fixed basic logic flaw relating to test to determine if log output should be generated

master
Sean Murphy 6 years ago
parent 0112489907
commit e5337663d0
  1. 4
      logging.go

@ -54,7 +54,7 @@ var (
func (l *logStream) Printf(format string, a ...interface{}) {
// describe(a)
if LogLevel >= l.logLevel {
if LogLevel < l.logLevel {
return
}
@ -80,7 +80,7 @@ func determineLogLevel(lstr string) int {
return logLevelStringMap[lstrLowerCase]
}
func initLogger(logFile string, logLevelStr string, logToConsole bool) {
func InitLogger(logFile string, logLevelStr string, logToConsole bool) {
LogLevel = determineLogLevel(logLevelStr)

Loading…
Cancel
Save