Do not check log level in writerMsg() because the check is already done outside.
Showing
1 changed file
with
0 additions
and
3 deletions
| ... | @@ -148,9 +148,6 @@ func (bl *BeeLogger) DelLogger(adaptername string) error { | ... | @@ -148,9 +148,6 @@ func (bl *BeeLogger) DelLogger(adaptername string) error { |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { | 150 | func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { |
| 151 | if loglevel > bl.level { | ||
| 152 | return nil | ||
| 153 | } | ||
| 154 | lm := new(logMsg) | 151 | lm := new(logMsg) |
| 155 | lm.level = loglevel | 152 | lm.level = loglevel |
| 156 | if bl.enableFuncCallDepth { | 153 | if bl.enableFuncCallDepth { | ... | ... |
-
Please register or sign in to post a comment