Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
a51b1e89
Commit
a51b1e89
authored
Nov 06, 2017
by
Furtchet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the config key to database_log_queries so it is more descriptive, as suggested in #9785.
parent
5fdfa3ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
conf/defaults.ini
+1
-1
conf/sample.ini
+1
-1
docs/sources/installation/configuration.md
+1
-1
pkg/services/sqlstore/sqlstore.go
+1
-1
No files found.
conf/defaults.ini
View file @
a51b1e89
...
...
@@ -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".
...
...
conf/sample.ini
View file @
a51b1e89
...
...
@@ -92,7 +92,7 @@
;max_open_conn =
# Set to true to log the sql calls and execution times.
debug
=
log_queries
=
#################################### Session ####################################
[session]
...
...
docs/sources/installation/configuration.md
View file @
a51b1e89
...
...
@@ -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
/>
...
...
pkg/services/sqlstore/sqlstore.go
View file @
a51b1e89
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment