Browse Source

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

Furtchet 8 years ago
parent
commit
a51b1e8951

+ 1 - 1
conf/defaults.ini

@@ -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".

+ 1 - 1
conf/sample.ini

@@ -92,7 +92,7 @@
 ;max_open_conn =
 
 # Set to true to log the sql calls and execution times.
-debug =
+log_queries =
 
 #################################### Session ####################################
 [session]

+ 1 - 1
docs/sources/installation/configuration.md

@@ -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 />

+ 1 - 1
pkg/services/sqlstore/sqlstore.go

@@ -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 {