* fix #1883 * fix #1883 Co-authored-by: 杨羽 <yangyu@doumi.com>
This commit is contained in:
@@ -209,6 +209,7 @@ func GetLogger() dlog.Log {
|
||||
// SetLevel sets the log level
|
||||
func SetLevel(l Level) {
|
||||
atomic.StoreInt32((*int32)(&level), int32(l))
|
||||
nlog.Init(nlog.WithLevel(levelToLevel(l)))
|
||||
}
|
||||
|
||||
// GetLevel returns the current level
|
||||
|
Reference in New Issue
Block a user