config: console logging should be enabled by default. (#1307)

This commit is contained in:
Harshavardhana 2016-04-09 14:19:59 -07:00 committed by Anand Babu (AB) Periasamy
parent 33cd910d3a
commit 6b5699b15f

View file

@ -46,6 +46,11 @@ func initConfig() *probe.Error {
srvCfg.Version = globalMinioConfigVersion
srvCfg.Region = "us-east-1"
srvCfg.Credential = mustGenAccessKeys()
// Enable console logger by default on a fresh run.
srvCfg.Logger.Console = consoleLogger{
Enable: true,
Level: "fatal",
}
srvCfg.rwMutex = &sync.RWMutex{}
// Create config path.
err := createConfigPath()