diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-14 15:04:07 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-05-14 10:04:07 +0300 |
commit | 8b36f01f453979d6b6ee14f9ac6e56fa6c7b035e (patch) | |
tree | b0f38d5a757aaaa10484241f85a77bf936084815 /modules/setting/log.go | |
parent | 0e057eb0336629652ae8e661b1bd497007730334 (diff) | |
download | gitea-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/log.go')
-rw-r--r-- | modules/setting/log.go | 3 |
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) } } |