diff --git a/pay/init.go b/pay/init.go index bebb446..223cc47 100644 --- a/pay/init.go +++ b/pay/init.go @@ -26,6 +26,7 @@ func Init(host, name, user, psw string) error { cfg.MaxLifetime = 30 cfg.MaxOpenConns = 100 cfg.MaxIdleConns = 100 + cfg.Path = "logs/%s.log" if err := db.InitDB(&cfg); err != nil { return err } diff --git a/pay/logs/zyos_website.log b/pay/logs/zyos_website.log deleted file mode 100644 index d00cee2..0000000 --- a/pay/logs/zyos_website.log +++ /dev/null @@ -1 +0,0 @@ -[xorm] [info] 2022/04/27 15:58:13.777967 [SQL] SELECT `id`, `channel_id`, `identifier`, `master_id`, `master_nickname`, `app_id` FROM `pay_channel_master` WHERE (app_id = ?) AND (identifier = ?) LIMIT 1 [35618318 mall] - 27.4838ms