mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-22 14:08:01 +02:00
Add config option to enable or disable log executed SQL (#3726)
* add config option to enable or disable log executed SQL * rename ShowSQL to LogSQL
This commit is contained in:
@ -159,6 +159,7 @@ var (
|
||||
UseMSSQL bool
|
||||
UsePostgreSQL bool
|
||||
UseTiDB bool
|
||||
LogSQL bool
|
||||
|
||||
// Indexer settings
|
||||
Indexer struct {
|
||||
@ -931,6 +932,7 @@ func NewContext() {
|
||||
}
|
||||
}
|
||||
IterateBufferSize = Cfg.Section("database").Key("ITERATE_BUFFER_SIZE").MustInt(50)
|
||||
LogSQL = Cfg.Section("database").Key("LOG_SQL").MustBool(true)
|
||||
|
||||
sec = Cfg.Section("attachment")
|
||||
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments"))
|
||||
|
Reference in New Issue
Block a user