1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 04:51:30 +00:00
This commit is contained in:
youngsterxyf 2016-01-23 02:32:09 +08:00
parent af346e871b
commit cbc7f43e88

View File

@ -69,10 +69,13 @@ func Run(params ...string) {
func initBeforeHTTPRun() { func initBeforeHTTPRun() {
// if AppConfigPath is setted or conf/app.conf exist // if AppConfigPath is setted or conf/app.conf exist
/*
err := ParseConfig() err := ParseConfig()
if err != nil { if err != nil {
panic(err) panic(err)
} }
*/
var err error
//init log //init log
for adaptor, config := range BConfig.Log.Outputs { for adaptor, config := range BConfig.Log.Outputs {
err = BeeLogger.SetLogger(adaptor, config) err = BeeLogger.SetLogger(adaptor, config)