1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 11:31:30 +00:00

Merge pull request #1459 from ryanchapman/develop

Log config parsing errors
This commit is contained in:
astaxie 2015-12-02 16:34:35 +08:00
commit 5d902264e5

View File

@ -354,10 +354,12 @@ func init() {
SetLogFuncCall(true) SetLogFuncCall(true)
err = ParseConfig() err = ParseConfig()
if err != nil && os.IsNotExist(err) { if err != nil {
if os.IsNotExist(err) {
// for init if doesn't have app.conf will not panic // for init if doesn't have app.conf will not panic
ac := config.NewFakeConfig() ac := config.NewFakeConfig()
AppConfig = &beegoAppConfig{ac} AppConfig = &beegoAppConfig{ac}
}
Warning(err) Warning(err)
} }
} }