Fix compile errors from renaming 'level' to 'Level'

This commit is contained in:
Luca 2023-01-13 15:17:20 +01:00
parent 007f2ab630
commit 688cc670ca
1 changed files with 4 additions and 4 deletions

View File

@ -10,25 +10,25 @@ type logger struct{
} }
func (l logger) Error(message string, args ...interface{}) { func (l logger) Error(message string, args ...interface{}) {
if l.level > 0 { if l.Level > 0 {
logLevel("error", message, args...) logLevel("error", message, args...)
} }
} }
func (l logger) Warn(message string, args ...interface{}) { func (l logger) Warn(message string, args ...interface{}) {
if l.level > 1 { if l.Level > 1 {
logLevel("warning", message, args...) logLevel("warning", message, args...)
} }
} }
func (l logger) Debug(message string, args ...interface{}) { func (l logger) Debug(message string, args ...interface{}) {
if l.level > 2 { if l.Level > 2 {
logLevel("debug", message, args...) logLevel("debug", message, args...)
} }
} }
func (l logger) Trace(message string, args ...interface{}) { func (l logger) Trace(message string, args ...interface{}) {
if l.level > 3 { if l.Level > 3 {
logLevel("trace", message, args...) logLevel("trace", message, args...)
} }
} }