feat 提高数据库超时时间
This commit is contained in:
parent
436ec577c2
commit
2cc7b5cfb7
@ -32,7 +32,7 @@ func InitDefaultDatabase() (*gorm.DB, error) {
|
||||
db.Logger = logger.New(
|
||||
log.New(os.Stdout, "\r\n", log.LstdFlags),
|
||||
logger.Config{
|
||||
SlowThreshold: time.Second,
|
||||
SlowThreshold: time.Second * 3,
|
||||
LogLevel: logger.Warn,
|
||||
Colorful: true,
|
||||
IgnoreRecordNotFoundError: true,
|
||||
|
Loading…
Reference in New Issue
Block a user