mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 15:13:30 -06:00
Update the config key to database_log_queries so it is more descriptive, as suggested in #9785.
This commit is contained in:
parent
5fdfa3ff7e
commit
a51b1e8951
@ -83,7 +83,7 @@ max_idle_conn = 2
|
||||
max_open_conn =
|
||||
|
||||
# Set to true to log the sql calls and execution times.
|
||||
debug =
|
||||
log_queries =
|
||||
|
||||
# For "postgres", use either "disable", "require" or "verify-full"
|
||||
# For "mysql", use either "true", "false", or "skip-verify".
|
||||
|
@ -92,7 +92,7 @@
|
||||
;max_open_conn =
|
||||
|
||||
# Set to true to log the sql calls and execution times.
|
||||
debug =
|
||||
log_queries =
|
||||
|
||||
#################################### Session ####################################
|
||||
[session]
|
||||
|
@ -224,7 +224,7 @@ The maximum number of connections in the idle connection pool.
|
||||
### max_open_conn
|
||||
The maximum number of open connections to the database.
|
||||
|
||||
### debug
|
||||
### log_queries
|
||||
Set to `true` to log the sql calls and execution times.
|
||||
|
||||
<hr />
|
||||
|
@ -158,7 +158,7 @@ func getEngine() (*xorm.Engine, error) {
|
||||
} else {
|
||||
engine.SetMaxOpenConns(DbCfg.MaxOpenConn)
|
||||
engine.SetMaxIdleConns(DbCfg.MaxIdleConn)
|
||||
debugSql := setting.Cfg.Section("database").Key("debug").MustBool(false)
|
||||
debugSql := setting.Cfg.Section("database").Key("log_queries").MustBool(false)
|
||||
if !debugSql {
|
||||
engine.SetLogger(&xorm.DiscardLogger{})
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user