Merge pull request #143 from jkaninda/refactor

refactor: update logger, fix warning message
This commit is contained in:
2024-10-23 12:06:49 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func restoreFromRemote(db *dbConfig, conf *RestoreConfig) {
}
err = sshStorage.CopyFrom(conf.file)
if err != nil {
utils.Fatal("Error copying backup file: %w", err)
utils.Fatal("Error copying backup file: %s", err)
}
RestoreDatabase(db, conf)
}

View File

@@ -202,7 +202,7 @@ func CronNextTime(cronExpr string) time.Time {
// Parse the cron expression
schedule, err := cron.ParseStandard(cronExpr)
if err != nil {
Error("Error parsing cron expression:", err)
Error("Error parsing cron expression: %s", err)
return time.Time{}
}
// Get the current time