mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 15:28:05 +03: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:
committed by
Nicola Murino
parent
ff73e5f53c
commit
70bde8b2bc
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user