From 589bf533ea7acc5c7c0234fa1f6a079ec4b696ea Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 8 Mar 2024 12:14:09 -0500 Subject: [PATCH] [scrobbles] Add new log on update for scrobble data --- vrobbler/apps/scrobbles/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index b79a667..412e5bd 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -961,6 +961,10 @@ class Scrobble(TimeStampedModel): return [s.geo_location for s in past_scrobbles] def update(self, scrobble_data: dict) -> "Scrobble": + logger.info( + "[scrobbling] update", + extra={"scrobble_id": self.id, "scrobble_data": scrobble_data}, + ) # Status is a field we get from Mopidy, which refuses to poll us scrobble_status = scrobble_data.pop("mopidy_status", None) if not scrobble_status: