放开sql日志

This commit is contained in:
lingxin 2025-12-08 10:25:24 +08:00
parent 3d0a1e5fb5
commit 36279cbf5b

View File

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