mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
config: Remove level in console/file loggers (#3938)
Also rename fileName field in file logger to filename
This commit is contained in:
committed by
Harshavardhana
parent
4e92b2ecb8
commit
11e15f9b4c
+2
-2
@@ -96,7 +96,7 @@ func newGatewayLayer(backendType, accessKey, secretKey string) (GatewayLayer, er
|
||||
// only used in memory.
|
||||
func newGatewayConfig(accessKey, secretKey, region string) error {
|
||||
// Initialize server config.
|
||||
srvCfg := newServerConfigV15()
|
||||
srvCfg := newServerConfigV16()
|
||||
|
||||
// If env is set for a fresh start, save them to config file.
|
||||
srvCfg.SetCredential(credential{
|
||||
@@ -105,7 +105,7 @@ func newGatewayConfig(accessKey, secretKey, region string) error {
|
||||
})
|
||||
|
||||
// Set default printing to console.
|
||||
srvCfg.Logger.SetConsole(consoleLogger{true, "error"})
|
||||
srvCfg.Logger.SetConsole(consoleLogger{true})
|
||||
|
||||
// Set custom region.
|
||||
srvCfg.SetRegion(region)
|
||||
|
||||
Reference in New Issue
Block a user