Remove "logger" field from config.json (#5268)

File logging removed as part of improvement to server logging.

config.json format updated to version 21.

Fixes #5176
This commit is contained in:
kannappanr
2017-12-05 23:18:29 -08:00
committed by Nitish Tiwari
parent eb2894233c
commit a1c1a18dc5
9 changed files with 170 additions and 130 deletions

View File

@@ -37,22 +37,6 @@ func checkUpdate(mode string) {
}
}
func enableLoggers() {
fileLogTarget := globalServerConfig.Logger.GetFile()
if fileLogTarget.Enable {
err := InitFileLogger(&fileLogTarget)
fatalIf(err, "Unable to initialize file logger")
log.AddTarget(fileLogTarget)
}
consoleLogTarget := globalServerConfig.Logger.GetConsole()
if consoleLogTarget.Enable {
InitConsoleLogger(&consoleLogTarget)
}
log.SetConsoleTarget(consoleLogTarget)
}
func initConfig() {
// Config file does not exist, we create it fresh and return upon success.
if isFile(getConfigFile()) {