diff --git a/sources/PlexSource.js b/sources/PlexSource.js index 28343e75..85851640 100644 --- a/sources/PlexSource.js +++ b/sources/PlexSource.js @@ -70,17 +70,17 @@ export default class PlexSource { } = playObj; if (this.users !== undefined && user !== undefined && !this.users.includes(user)) { - this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, artist, track) + this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, { artist, track }) return false; } if (event !== 'media.scrobble') { - this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, artist, track) + this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, { artist, track }) return false; } if (mediaType !== 'track') { - this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, artist, track); + this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, { artist, track }); return false; }