Skip to content

Commit

Permalink
Fix log header in spotify manager (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Oct 24, 2023
1 parent 9d50d31 commit 8d5e197
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/helpers/spotify_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,14 @@ export default class SpotifyManager {
truncated: false,
};

const logHeader = `${getDebugLogHeader(
(messageContext || interaction)!,
)}, playlistID = ${playlistID}`;
let logHeader: string;
if (messageContext || interaction) {
logHeader = `${getDebugLogHeader(
(messageContext || interaction)!,
)}, playlistID = ${playlistID}`;
} else {
logHeader = `guildID = ${guildID}. playlistID = ${playlistID}`;
}

if (
!process.env.SPOTIFY_CLIENT_ID ||
Expand Down

0 comments on commit 8d5e197

Please sign in to comment.