log level fix

This commit is contained in:
Jan Halfar 2014-10-01 14:54:30 +02:00
parent 5f1fc08831
commit c6f44766c2

View File

@ -59,7 +59,7 @@ func log(msg string, level int) string {
}
func SetLogLevel(level int) bool {
if level > LOG_LEVEL_ERROR && level <= LOG_LEVEL_DEBUG {
if level >= LOG_LEVEL_ERROR && level <= LOG_LEVEL_DEBUG {
logLevel = level
return true
} else {