Merge pull request #107 from vincent78/main

fix: can't change the logger level
This commit is contained in:
zhuyasen 2025-06-22 11:13:08 +08:00 committed by GitHub
commit bf241cffe9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -64,8 +64,9 @@ func WithLogging(l *zap.Logger, level ...logger.LogLevel) Option {
o.gLog = l
if len(level) > 0 {
o.logLevel = level[0]
} else {
o.logLevel = logger.Info
}
o.logLevel = logger.Info
}
}