Commit a51b1e89 by Furtchet

Update the config key to database_log_queries so it is more descriptive, as suggested in #9785.

parent 5fdfa3ff
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment