mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Fix review comments and new changes in config (#8515)
- Migrate and save only settings which are enabled - Rename logger_http to logger_webhook and logger_http_audit to audit_webhook - No more pretty printing comments, comment is a key=value pair now. - Avoid quotes on values which do not have space in them - `state="on"` is implicit for all SetConfigKV unless specified explicitly as `state="off"` - Disabled IAM users should be disabled always
This commit is contained in:
@@ -19,6 +19,7 @@ package cmd
|
||||
import (
|
||||
"context"
|
||||
"encoding/gob"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
@@ -193,8 +194,8 @@ func newAllSubsystems() {
|
||||
func initSafeModeInit(buckets []BucketInfo) (err error) {
|
||||
defer func() {
|
||||
if err != nil {
|
||||
switch err.(type) {
|
||||
case config.Err:
|
||||
var cerr config.Err
|
||||
if errors.As(err, &cerr) {
|
||||
return
|
||||
}
|
||||
// Enable logger
|
||||
@@ -377,7 +378,7 @@ func serverMain(ctx *cli.Context) {
|
||||
initFederatorBackend(buckets, newObject)
|
||||
}
|
||||
|
||||
initSafeModeInit(buckets)
|
||||
logger.FatalIf(initSafeModeInit(buckets), "Unable to initialize server")
|
||||
|
||||
if globalCacheConfig.Enabled {
|
||||
msg := color.RedBold("Disk caching is disabled in 'server' mode, 'caching' is only supported in gateway deployments")
|
||||
|
||||
Reference in New Issue
Block a user