Move sql query logging from info to debug
This commit is contained in:
parent
8024a8420b
commit
7583326d21
|
@ -66,7 +66,6 @@ type config struct {
|
||||||
Schema string
|
Schema string
|
||||||
PoolSize int32 `mapstructure:"pool_size"`
|
PoolSize int32 `mapstructure:"pool_size"`
|
||||||
MaxRetries int `mapstructure:"max_retries"`
|
MaxRetries int `mapstructure:"max_retries"`
|
||||||
LogLevel string `mapstructure:"log_level"`
|
|
||||||
SetUserID bool `mapstructure:"set_user_id"`
|
SetUserID bool `mapstructure:"set_user_id"`
|
||||||
|
|
||||||
Vars map[string]string `mapstructure:"variables"`
|
Vars map[string]string `mapstructure:"variables"`
|
||||||
|
|
|
@ -28,9 +28,7 @@ func (pl *Logger) Log(ctx context.Context, level pgx.LogLevel, msg string, data
|
||||||
zlevel = zerolog.ErrorLevel
|
zlevel = zerolog.ErrorLevel
|
||||||
case pgx.LogLevelWarn:
|
case pgx.LogLevelWarn:
|
||||||
zlevel = zerolog.WarnLevel
|
zlevel = zerolog.WarnLevel
|
||||||
case pgx.LogLevelInfo:
|
case pgx.LogLevelDebug, pgx.LogLevelInfo:
|
||||||
zlevel = zerolog.InfoLevel
|
|
||||||
case pgx.LogLevelDebug:
|
|
||||||
zlevel = zerolog.DebugLevel
|
zlevel = zerolog.DebugLevel
|
||||||
default:
|
default:
|
||||||
zlevel = zerolog.DebugLevel
|
zlevel = zerolog.DebugLevel
|
||||||
|
|
|
@ -3,7 +3,7 @@ host_port: 0.0.0.0:8080
|
||||||
web_ui: true
|
web_ui: true
|
||||||
|
|
||||||
# debug, info, warn, error, fatal, panic
|
# debug, info, warn, error, fatal, panic
|
||||||
log_level: "warn"
|
log_level: "info"
|
||||||
|
|
||||||
# When production mode is 'true' only queries
|
# When production mode is 'true' only queries
|
||||||
# from the allow list are permitted.
|
# from the allow list are permitted.
|
||||||
|
|
Loading…
Reference in New Issue