Sfoglia il codice sorgente

[scrobbles] Add media type to our new log

Colin Powell 1 anno fa
parent
commit
bf59fb213e
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      vrobbler/apps/scrobbles/models.py

+ 5 - 1
vrobbler/apps/scrobbles/models.py

@@ -963,7 +963,11 @@ class Scrobble(TimeStampedModel):
     def update(self, scrobble_data: dict) -> "Scrobble":
         logger.info(
             "[scrobbling] update",
-            extra={"scrobble_id": self.id, "scrobble_data": scrobble_data},
+            extra={
+                "scrobble_id": self.id,
+                "scrobble_data": scrobble_data,
+                "media_type": self.media_type,
+            },
         )
         # Status is a field we get from Mopidy, which refuses to poll us
         scrobble_status = scrobble_data.pop("mopidy_status", None)