mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 04:51:30 +00:00
fix issue #1601
This commit is contained in:
parent
af346e871b
commit
cbc7f43e88
3
beego.go
3
beego.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user