From 8e82ed319b11293a50f6f4d94ee26f5f72e4b8c8 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Wed, 30 Mar 2016 14:31:16 +0800 Subject: [PATCH] beelog bug fixed --- logs/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/log.go b/logs/log.go index 695691b2..c43782f3 100644 --- a/logs/log.go +++ b/logs/log.go @@ -255,7 +255,7 @@ func (bl *BeeLogger) Write(p []byte) (n int, err error) { } func (bl *BeeLogger) writeMsg(logLevel int, msg string, v ...interface{}) error { - if !beeLogger.init { + if !bl.init { bl.lock.Lock() bl.setLogger(AdapterConsole) bl.lock.Unlock()