refactor: update status init func (#241)

This commit is contained in:
Bo-Yi Wu 2017-06-24 09:47:35 -05:00 committed by GitHub
parent 55ec234a76
commit 16c3f5c46c
1 changed files with 2 additions and 5 deletions

View File

@ -52,11 +52,8 @@ func InitAppStatus() error {
case "leveldb": case "leveldb":
StatStorage = leveldb.New(PushConf) StatStorage = leveldb.New(PushConf)
default: default:
err := errors.New("can't find storage driver") LogError.Error("storage error: can't find storage driver")
if err != nil { return errors.New("can't find storage driver")
LogError.Error("storage error: " + err.Error())
return err
}
} }
if err := StatStorage.Init(); err != nil { if err := StatStorage.Init(); err != nil {