Move sql query logging from info to debug

This commit is contained in:
Vikram Rangnekar 2019-11-22 01:32:09 -05:00
parent 8024a8420b
commit 7583326d21
3 changed files with 5 additions and 8 deletions

View File

@ -66,7 +66,6 @@ type config struct {
Schema string
PoolSize int32 `mapstructure:"pool_size"`
MaxRetries int `mapstructure:"max_retries"`
LogLevel string `mapstructure:"log_level"`
SetUserID bool `mapstructure:"set_user_id"`
Vars map[string]string `mapstructure:"variables"`

View File

@ -28,9 +28,7 @@ func (pl *Logger) Log(ctx context.Context, level pgx.LogLevel, msg string, data
zlevel = zerolog.ErrorLevel
case pgx.LogLevelWarn:
zlevel = zerolog.WarnLevel
case pgx.LogLevelInfo:
zlevel = zerolog.InfoLevel
case pgx.LogLevelDebug:
case pgx.LogLevelDebug, pgx.LogLevelInfo:
zlevel = zerolog.DebugLevel
default:
zlevel = zerolog.DebugLevel

View File

@ -3,7 +3,7 @@ host_port: 0.0.0.0:8080
web_ui: true
# debug, info, warn, error, fatal, panic
log_level: "warn"
log_level: "info"
# When production mode is 'true' only queries
# from the allow list are permitted.