Change return value of NoopBackend.Level() to DefaultLevel
This commit is contained in:
parent
f8dc5855e3
commit
5c9b362285
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
- Uncompatible change: log level names hace changed. They were fully
|
||||
- Uncompatible: log level names hace changed. They were fully
|
||||
capitalized, only their first letter is capitalized now: DEBUG -> Debug,
|
||||
INFO -> Info, etc.
|
||||
- Uncompatible NoopBackend.Level() now returns DefaultLevel instead of Fatal
|
||||
- Fix: creates new logger with level DefaultLevel instead of Debug
|
||||
|
|
|
@ -117,7 +117,7 @@ func (nb *NoopBackend) SetFormatter(f *Formatter) {}
|
|||
func (nb *NoopBackend) SetLevel(level Level) {}
|
||||
|
||||
func (nb *NoopBackend) Level() Level {
|
||||
return FATAL
|
||||
return DefaultLevel
|
||||
}
|
||||
|
||||
func (nb *NoopBackend) Reopen() error {
|
||||
|
|
Loading…
Reference in a new issue