Skip to content

Commit f8eeebe

Browse files
committed
Fix splat arg usage for now
Should be able to just throw arguments at it but for some reason it needs to be in an object for now?
1 parent aa95604 commit f8eeebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sources/PlexSource.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ export default class PlexSource {
7070
} = playObj;
7171

7272
if (this.users !== undefined && user !== undefined && !this.users.includes(user)) {
73-
this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, artist, track)
73+
this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, { artist, track })
7474
return false;
7575
}
7676

7777
if (event !== 'media.scrobble') {
78-
this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, artist, track)
78+
this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, { artist, track })
7979
return false;
8080
}
8181

8282
if (mediaType !== 'track') {
83-
this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, artist, track);
83+
this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, { artist, track });
8484
return false;
8585
}
8686

0 commit comments

Comments
 (0)