From 688cc670ca7d2f630ea11118e5b28afc431b56c3 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 13 Jan 2023 15:17:20 +0100 Subject: [PATCH] Fix compile errors from renaming 'level' to 'Level' --- logger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logger.go b/logger.go index fd3aae7..1326dfb 100644 --- a/logger.go +++ b/logger.go @@ -10,25 +10,25 @@ type logger struct{ } func (l logger) Error(message string, args ...interface{}) { - if l.level > 0 { + if l.Level > 0 { logLevel("error", message, args...) } } func (l logger) Warn(message string, args ...interface{}) { - if l.level > 1 { + if l.Level > 1 { logLevel("warning", message, args...) } } func (l logger) Debug(message string, args ...interface{}) { - if l.level > 2 { + if l.Level > 2 { logLevel("debug", message, args...) } } func (l logger) Trace(message string, args ...interface{}) { - if l.level > 3 { + if l.Level > 3 { logLevel("trace", message, args...) } }