作者 yangfu

打印日志

正在显示 1 个修改的文件 包含 2 行增加0 行删除
@@ -2,6 +2,7 @@ package main @@ -2,6 +2,7 @@ package main
2 2
3 import ( 3 import (
4 "github.com/astaxie/beego" 4 "github.com/astaxie/beego"
  5 + "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/constant"
5 _ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg" 6 _ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg"
6 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log" 7 "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log"
7 _ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/appsvr" 8 _ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/appsvr"
@@ -12,5 +13,6 @@ func main() { @@ -12,5 +13,6 @@ func main() {
12 log.Info("app stop!") 13 log.Info("app stop!")
13 }() 14 }()
14 log.Info("app start!") 15 log.Info("app start!")
  16 + log.Info(constant.POSTGRESQL_DB_NAME)
15 beego.Run() 17 beego.Run()
16 } 18 }