mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
Watched: Also log the error on the "failed to restore existing watched entry" log.
This commit is contained in:
@@ -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: 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.
|
- SpinnerTiny: Fix color being wrong on dark theme.
|
||||||
|
- Watched: Also log the `error` on the "failed to restore existing watched entry" log.
|
||||||
|
|
||||||
## Maintenance
|
## Maintenance
|
||||||
|
|
||||||
|
|||||||
@@ -443,7 +443,8 @@ func (s *Service) AddWatched(
|
|||||||
&watched,
|
&watched,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
// Try to restore the entry if unique contraint hit.
|
// 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
|
// Returns watched too because handlers of certain errors
|
||||||
// may need it (and it's ID since we could have fetched it here)
|
// may need it (and it's ID since we could have fetched it here)
|
||||||
return watched, err
|
return watched, err
|
||||||
|
|||||||
Reference in New Issue
Block a user