remove some allocations

ref #129
This commit is contained in:
Lucas Clemente
2016-05-24 15:22:56 +02:00
parent 6c2932a872
commit 55fe1390b3
3 changed files with 10 additions and 1 deletions

View File

@@ -58,3 +58,8 @@ func Errorf(format string, args ...interface{}) {
mutex.Unlock()
}
}
// Debug returns true if the log level is LogLevelDebug
func Debug() bool {
return logLevel == LogLevelDebug
}