5b1705b2 by toalexjin Committed by astaxie

Do not check log level in writerMsg() because the check is already done outside.

1 parent 34940d00
...@@ -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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!