From 70bde8b2bc8f7cb77e4f9bdc924619957eecb8b9 Mon Sep 17 00:00:00 2001 From: Estel Smith Date: Wed, 25 Nov 2020 09:15:23 +0100 Subject: [PATCH] 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 --- dataprovider/memory.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataprovider/memory.go b/dataprovider/memory.go index 923f36bb..5c1a26f9 100644 --- a/dataprovider/memory.go +++ b/dataprovider/memory.go @@ -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 {