* remove global cfg vars

* enterprise update
Этот коммит содержится в:
Chris
2018-01-12 08:02:11 -06:00
коммит произвёл Joram Wilander
родитель 3d3a234fca
Коммит 7e5ce97668
17 изменённых файлов: 343 добавлений и 354 удалений

Просмотреть файл

@@ -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) {