fixed logs printer dev tests

This commit is contained in:
Gani Georgiev committed 2024-02-26 16:39:35 +02:00
1 parent 53ee5212bc
commit f1a6c19309
3 files changed
+30 -14

No files matched your search

+6 -1
View File
@@ -251,7 +251,12 @@ func (app *BaseApp) initAutobackupHooks() error {
// make sure that app.Settings() is always up to date
//
// @todo remove with the refactoring as core.App and daos.Dao will be one.
app.RefreshSettings()
if err := app.RefreshSettings(); err != nil {
app.Logger().Debug(
"[Backup cron] Failed to get the latest app settings",
slog.String("error", err.Error()),
)
}
rawSchedule := app.Settings().Backups.Cron
if rawSchedule == "" || !isServe || !app.IsBootstrapped() {