Skip to content

Commit

Permalink
refactor: clean up debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Aug 18, 2023
1 parent 80c73cf commit 5714046
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class ApiAssetQueueService implements OnModuleInit {
private async debugLog(message: string, always = false) {
if (!this.core.config.syncDebug && !always) return
this.logger.debug(message)
await this.discord.bot.sendCommandChannel(`\`DEBUG: ${new Date().toISOString()} ${message}\``)
await this.discord.bot.sendCommandChannel(`\`${new Date().toISOString()}${always ? '' : ' DEBUG'}: ${message}\``)
}

private async updateAssetCounts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ export class ApiDiscordSyncIdentitiesService {
private async debugLog(message: string, always = false) {
if (!this.core.config.syncDebug && !always) return
this.logger.debug(message)
await this.bot.sendCommandChannel(`\`DEBUG: ${new Date().toISOString()} ${message}\``)
await this.bot.sendCommandChannel(`\`${new Date().toISOString()}${always ? '' : ' DEBUG'}: ${message}\``)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class ApiDiscordSyncServerRolesService {
private async debugLog(message: string, always = false) {
if (!this.core.config.syncDebug && !always) return
this.logger.debug(message)
await this.bot.sendCommandChannel(`\`DEBUG: ${new Date().toISOString()} ${message}\``)
await this.bot.sendCommandChannel(`\`${new Date().toISOString()}${always ? '' : ' DEBUG'}: ${message}\``)
}

private getAssetsWithAttributes(attributes: AssetAttribute[], providerIds: string[]): Promise<AssetWithIdentity[]> {
Expand Down

0 comments on commit 5714046

Please sign in to comment.