summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-14 15:04:07 +0800
committerLauris BH <lauris@nix.lv>2019-05-14 10:04:07 +0300
commit8b36f01f453979d6b6ee14f9ac6e56fa6c7b035e (patch)
treeb0f38d5a757aaaa10484241f85a77bf936084815 /modules/setting
parent0e057eb0336629652ae8e661b1bd497007730334 (diff)
downloadgitea-8b36f01f453979d6b6ee14f9ac6e56fa6c7b035e.tar.gz
gitea-8b36f01f453979d6b6ee14f9ac6e56fa6c7b035e.zip
Move xorm logger bridge from log to models so that log module could be a standalone package (#6944)
* move xorm logger bridge from log to models so that log module could be a standalone package * fix tests * save logger on xorm log bridge
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/log.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index cd2c5cc8c1..43a28309d2 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -295,8 +295,5 @@ func NewXORMLogService(disableConsole bool) {
Cfg.Section("log").Key("XORM").MustString(",")
generateNamedLogger("xorm", options)
- log.InitXORMLogger(LogSQL)
- } else {
- log.InitXORMLogger(false)
}
}