beelog bug fixed

This commit is contained in:
JessonChan 2016-03-30 14:31:16 +08:00
parent 220cf91180
commit 8e82ed319b
1 changed files with 1 additions and 1 deletions

View File

@ -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()