Fixed the new logger module use error

This commit is contained in:
alanwooo 2016-03-31 11:29:04 +08:00
parent 508bf37424
commit e46251f70b

View File

@ -124,7 +124,7 @@ func init() {
//conf/app.conf -> os.Getenv("config_path")
configPath := os.Getenv("CONFIG_PATH")
if len(configPath) != 0 {
log.Printf("Config path: %s", configPath)
log.Infof("Config path: %s", configPath)
beego.AppConfigPath = configPath
if err := beego.ParseConfig(); err != nil {
log.Warningf("Failed to parse config file: %s, error: %v", configPath, err)