mirror of
https://github.com/minio/minio.git
synced 2025-04-16 00:49:09 -04:00
config: console logging should be enabled by default. (#1307)
This commit is contained in:
parent
33cd910d3a
commit
6b5699b15f
@ -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…
x
Reference in New Issue
Block a user