diff --git a/.gitignore b/.gitignore index 9c159a3..3ef5a04 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,5 @@ nginx.conf .devcontainer/Dockerfile .devcontainer/sources.list /t1.go -/tmp/* .idea/* /.idea/modules.xml diff --git a/pay/init.go b/pay/init.go index 223cc47..6ebe556 100644 --- a/pay/init.go +++ b/pay/init.go @@ -26,7 +26,7 @@ func Init(host, name, user, psw string) error { cfg.MaxLifetime = 30 cfg.MaxOpenConns = 100 cfg.MaxIdleConns = 100 - cfg.Path = "logs/%s.log" + cfg.Path = "tmp/%s.log" if err := db.InitDB(&cfg); err != nil { return err } diff --git a/pay/pay_test.go b/pay/pay_test.go index f3158c0..12bc133 100644 --- a/pay/pay_test.go +++ b/pay/pay_test.go @@ -13,5 +13,5 @@ func TestPay(t *testing.T) { if err != nil { t.Errorf("Reverse == %s", err) } - t.Log(channel.Name) + t.Log(channel.Identifier) }