mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Fix crash in console logger and also handle bucket DNS updates (#8654)
Also fix listenBucketNotification bugs seen by minio-js listen bucket notification API.
This commit is contained in:
committed by
kannappanr
parent
842d0241ed
commit
c8d82588c2
@@ -74,6 +74,9 @@ func init() {
|
||||
// Set system resources to maximum.
|
||||
setMaxResources()
|
||||
|
||||
// Initialize globalConsoleSys system
|
||||
globalConsoleSys = NewConsoleLogger(context.Background())
|
||||
|
||||
logger.Disable = true
|
||||
|
||||
initHelp()
|
||||
@@ -497,9 +500,6 @@ func resetTestGlobals() {
|
||||
|
||||
// Configure the server for the test run.
|
||||
func newTestConfig(bucketLocation string, obj ObjectLayer) (err error) {
|
||||
// Initialize globalConsoleSys system
|
||||
globalConsoleSys = NewConsoleLogger(context.Background(), globalEndpoints)
|
||||
|
||||
// Initialize server config.
|
||||
if err = newSrvConfig(obj); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user