|
@@ -4,10 +4,9 @@ import ( |
|
@@ -4,10 +4,9 @@ import ( |
4
|
"github.com/beego/beego/v2/server/web"
|
4
|
"github.com/beego/beego/v2/server/web"
|
5
|
"github.com/linmadan/egglib-go/log/logrus"
|
5
|
"github.com/linmadan/egglib-go/log/logrus"
|
6
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
|
6
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
|
7
|
- _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
|
|
|
8
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/cache"
|
7
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/cache"
|
9
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
8
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
10
|
- _ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
9
|
+
|
11
|
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego"
|
10
|
_ "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego"
|
12
|
)
|
11
|
)
|
13
|
|
12
|
|
|
@@ -20,5 +19,6 @@ func main() { |
|
@@ -20,5 +19,6 @@ func main() { |
20
|
w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOST, constant.TOPIC_LOG_STASH, false)
|
19
|
w, _ := logrus.NewKafkaWriter(constant.KAFKA_HOST, constant.TOPIC_LOG_STASH, false)
|
21
|
log.Logger.AddHook(w)
|
20
|
log.Logger.AddHook(w)
|
22
|
}
|
21
|
}
|
|
|
22
|
+
|
23
|
web.Run()
|
23
|
web.Run()
|
24
|
} |
24
|
} |