作者 yangfu

启用日志

@@ -5,7 +5,7 @@ import ( @@ -5,7 +5,7 @@ import (
5 "github.com/linmadan/egglib-go/log/logrus" 5 "github.com/linmadan/egglib-go/log/logrus"
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
7 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant" 7 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/constant"
8 - //_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg" 8 + _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/pg"
9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" 9 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
10 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log" 10 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/log"
11 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego" 11 _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego"
@@ -19,6 +19,6 @@ func init() { @@ -19,6 +19,6 @@ func init() {
19 // POSTGRESQL_PORT = os.Getenv("TOPIC_LOG_STASH") 19 // POSTGRESQL_PORT = os.Getenv("TOPIC_LOG_STASH")
20 //} 20 //}
21 if os.Getenv("ENABLE_KAFKA_LOG") != "" { 21 if os.Getenv("ENABLE_KAFKA_LOG") != "" {
22 - DISABLE_CREATE_TABLE = true 22 + ENABLE_KAFKA_LOG = true
23 } 23 }
24 } 24 }