opt: 日志只写入Warning级别,调整慢SQL阈值为1000毫秒

This commit is contained in:
wangjie 2025-07-16 17:09:07 +08:00
parent 3f106b60ad
commit f8dacfc406

View File

@ -26,8 +26,8 @@ func NewGormZap(zapLogger *zap.Logger) Logger {
ZapLogger: zapLogger,
//LogLevel: gormlogger.Warn,
//SlowThreshold: 1000 * time.Millisecond,
LogLevel: gormlogger.Info,
SlowThreshold: 200 * time.Millisecond,
LogLevel: gormlogger.Warn,
SlowThreshold: 1000 * time.Millisecond,
SkipCallerLookup: false,
IgnoreRecordNotFoundError: true,
}