diff --git a/CHANGELOG.md b/CHANGELOG.md index 84792a37..9b33c888 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ These changes are awaiting release: - SpinnerTiny: Use svg instead of the css border trick to create the spinner fixing it looking more like a horseshoe than a circle on different browser scales (also added animation on the svg circle). - SpinnerTiny: Fix color being wrong on dark theme. +- Watched: Also log the `error` on the "failed to restore existing watched entry" log. ## Maintenance diff --git a/server/feature/watched/watched.go b/server/feature/watched/watched.go index d23ec0b9..5c8bd1a4 100644 --- a/server/feature/watched/watched.go +++ b/server/feature/watched/watched.go @@ -443,7 +443,8 @@ func (s *Service) AddWatched( &watched, ); err != nil { // Try to restore the entry if unique contraint hit. - slog.Error("AddWatched: Failed to restore existing watched entry.") + slog.Error("AddWatched: Failed to restore existing watched entry.", + "error", err) // Returns watched too because handlers of certain errors // may need it (and it's ID since we could have fetched it here) return watched, err