Skip to content

Commit

Permalink
feat: change sql_log_level default from debug to none
Browse files Browse the repository at this point in the history
When setting the log level to debug, the sql_log_level generally has to be set to none explicitly
to avoid noisy SQL logs. Defaulting to none is a more user friendly option.
  • Loading branch information
bethesque committed Mar 29, 2022
1 parent a9b5e1c commit 9f7aed4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ To disable noisy SQL query logging when the application `log_level` is set to `d

**Environment variable name:** `PACT_BROKER_SQL_LOG_LEVEL`<br/>
**YAML configuration key name:** `sql_log_level`<br/>
**Default:** `debug`<br/>
**Default:** From 2.99+, the default is `none`. In previous versions, the default is `debug`.<br/>
**Allowed values:** `none`, `debug`, `info`, `warn`, `error`, `fatal`<br/>

### sql_log_warn_duration
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ groups:
The log level that will be used when the SQL query statements are logged.
To disable noisy SQL query logging when the application `log_level` is set to `debug` for other reasons, use the value `none`.
default_value: debug
default_description: From 2.99+, the default is `none`. In previous versions, the default is `debug`.
allowed_values:
- none
- debug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.included(anyway_config)
database_port: nil,
database_url: nil,
database_sslmode: nil,
sql_log_level: :debug,
sql_log_level: :none,
sql_log_warn_duration: 5,
sql_enable_caller_logging: false,
database_max_connections: nil,
Expand Down

0 comments on commit 9f7aed4

Please sign in to comment.