mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
dtm
This commit is contained in:
parent
b5ea79e3ea
commit
52c71e3843
@ -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)
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
if config.Config.Redis.EnableCluster {
|
if config.Config.Redis.EnableCluster {
|
||||||
|
@ -57,7 +57,7 @@ func initMysqlDB() {
|
|||||||
Writer{},
|
Writer{},
|
||||||
logger.Config{
|
logger.Config{
|
||||||
SlowThreshold: 200 * time.Millisecond, // Slow SQL threshold
|
SlowThreshold: 200 * time.Millisecond, // Slow SQL threshold
|
||||||
LogLevel: logger.Info, // Log level
|
LogLevel: logger.Silent, // Log level
|
||||||
IgnoreRecordNotFoundError: true, // Ignore ErrRecordNotFound error for logger
|
IgnoreRecordNotFoundError: true, // Ignore ErrRecordNotFound error for logger
|
||||||
Colorful: true, // Disable color
|
Colorful: true, // Disable color
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user