mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 18:51:28 +00:00
Merge pull request #1459 from ryanchapman/develop
Log config parsing errors
This commit is contained in:
commit
5d902264e5
10
config.go
10
config.go
@ -354,10 +354,12 @@ func init() {
|
|||||||
SetLogFuncCall(true)
|
SetLogFuncCall(true)
|
||||||
|
|
||||||
err = ParseConfig()
|
err = ParseConfig()
|
||||||
if err != nil && os.IsNotExist(err) {
|
if err != nil {
|
||||||
// for init if doesn't have app.conf will not panic
|
if os.IsNotExist(err) {
|
||||||
ac := config.NewFakeConfig()
|
// for init if doesn't have app.conf will not panic
|
||||||
AppConfig = &beegoAppConfig{ac}
|
ac := config.NewFakeConfig()
|
||||||
|
AppConfig = &beegoAppConfig{ac}
|
||||||
|
}
|
||||||
Warning(err)
|
Warning(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user