memory provider: print a log if loading the initial dump fails

therefore this error is no longer fatal and does not prevent the services
from starting

Fixes #229
This commit is contained in:
Estel Smith
2020-11-25 09:15:23 +01:00
committed by Nicola Murino
parent ff73e5f53c
commit 70bde8b2bc

View File

@@ -61,7 +61,10 @@ func initializeMemoryProvider(basePath string) error {
configFile: configFile, configFile: configFile,
}, },
} }
return provider.reloadConfig() if err := provider.reloadConfig(); err != nil {
logger.ErrorToConsole("unable to load initial data: %v", err)
}
return nil
} }
func (p MemoryProvider) checkAvailability() error { func (p MemoryProvider) checkAvailability() error {