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
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB

View file

@ -61,7 +61,10 @@ func initializeMemoryProvider(basePath string) error {
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 {