Przeglądaj źródła

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
Estel Smith 4 lat temu
rodzic
commit
70bde8b2bc
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      dataprovider/memory.go

+ 4 - 1
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 {