summaryrefslogtreecommitdiffstats
path: root/utils/logger/logger.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-12 08:02:11 -0600
committerJoram Wilander <jwawilander@gmail.com>2018-01-12 09:02:11 -0500
commit7e5ce976681e99be6b26d428935ba1106d530efa (patch)
treee050da49c943bf77f57b03eceb0b650114c7f1b6 /utils/logger/logger.go
parent3d3a234fca1d2ee43f5c4fc8961d44fde2512c82 (diff)
downloadchat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.gz
chat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.bz2
chat-7e5ce976681e99be6b26d428935ba1106d530efa.zip
Remove global cfg vars (#8099)
* remove global cfg vars * enterprise update
Diffstat (limited to 'utils/logger/logger.go')
-rw-r--r--utils/logger/logger.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/utils/logger/logger.go b/utils/logger/logger.go
index da549dcc4..558f3fe47 100644
--- a/utils/logger/logger.go
+++ b/utils/logger/logger.go
@@ -27,15 +27,6 @@ var debugLog = l4g.Debug
var infoLog = l4g.Info
var errorLog = l4g.Error
-func init() {
- // listens for configuration changes that we might need to respond to
- utils.AddConfigListener(func(oldConfig *model.Config, newConfig *model.Config) {
- infoLog("Configuration change detected, reloading log settings")
- initL4g(newConfig.LogSettings)
- })
- initL4g(utils.Cfg.LogSettings)
-}
-
// assumes that ../config.go::configureLog has already been called, and has in turn called l4g.close() to clean up
// any old filters that we might have previously created
func initL4g(logSettings model.LogSettings) {