fixed logs printer dev tests

This commit is contained in:
Gani Georgiev
2024-02-26 16:39:35 +02:00
parent 53ee5212bc
commit f1a6c19309
3 changed files with 30 additions and 14 deletions
+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() {