From 52c71e38435a995228b43355fa00ecc05ca30ed2 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 21 Jul 2022 11:13:47 +0800 Subject: [PATCH] dtm --- pkg/common/db/model.go | 1 - pkg/common/db/mysql.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/common/db/model.go b/pkg/common/db/model.go index f3c274436..545997547 100644 --- a/pkg/common/db/model.go +++ b/pkg/common/db/model.go @@ -119,7 +119,6 @@ func init() { // ) // }, //} - fmt.Println("tes", config.Config.Redis.DBUserName, config.Config.Redis.DBPassWord) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() if config.Config.Redis.EnableCluster { diff --git a/pkg/common/db/mysql.go b/pkg/common/db/mysql.go index 42200b40c..255552e83 100644 --- a/pkg/common/db/mysql.go +++ b/pkg/common/db/mysql.go @@ -57,7 +57,7 @@ func initMysqlDB() { Writer{}, logger.Config{ SlowThreshold: 200 * time.Millisecond, // Slow SQL threshold - LogLevel: logger.Info, // Log level + LogLevel: logger.Silent, // Log level IgnoreRecordNotFoundError: true, // Ignore ErrRecordNotFound error for logger Colorful: true, // Disable color },