log: Fix file logging, enable it properly. (#1424)

Fixes #1419
This commit is contained in:
Harshavardhana 2016-04-29 17:54:02 -07:00 committed by Anand Babu (AB) Periasamy
parent 9eb56f0676
commit dc45ea3946

View File

@ -35,7 +35,7 @@ type localFile struct {
func enableFileLogger() {
flogger := serverConfig.GetFileLogger()
if !flogger.Enable || flogger.Filename != "" {
if !flogger.Enable || flogger.Filename == "" {
return
}