[scrobbles] Add media type to our new log

This commit is contained in:
2024-03-08 12:23:39 -05:00
parent 589bf533ea
commit bf59fb213e

View File

@ -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)