From 95b3b9f7c3763a3a8c8995f1215906b12b3e9c87 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 30 May 2022 17:00:42 +0800 Subject: [PATCH] update --- pay/init.go | 1 + pay/logs/zyos_website.log | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 pay/logs/zyos_website.log 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