mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 17:10:28 +00:00
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:
parent
ff73e5f53c
commit
70bde8b2bc
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue