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

master
Harshavardhana 9 years ago committed by Anand Babu (AB) Periasamy
parent 33cd910d3a
commit 6b5699b15f
  1. 5
      config-v4.go

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

Loading…
Cancel
Save