Skip to content

Commit

Permalink
don't do an error, just do a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Oct 4, 2024
1 parent d0620ef commit 7ad090a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/app/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ func (a *App) SetupDatabaseAutoSave() {
a.Logger.Info("Running database garbage collection")
t1 := time.Now()
if err := a.DB.RunGC(); err != nil {
a.Logger.Error("Failed to run garbage collection", "error", err)
return
a.Logger.Warn("Unable to run garbage collection", "error", err)
}
a.Logger.Info("Finished running garbage collection", "ping", time.Since(t1))
}()
Expand Down

0 comments on commit 7ad090a

Please sign in to comment.