Skip to content

Commit 161b60a

Browse files
committed
feat(osint): include updatedBy in worker error logs
1 parent 46469f7 commit 161b60a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/osint/src/workers/characters.worker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ export class CharactersWorker {
174174
message.data?.name && message.data?.realm
175175
? `${message.data.name}@${message.data.realm}`
176176
: 'unknown';
177+
const updatedBy = message.data?.updatedBy || 'unknown';
177178

178179
this.logger.error(
179-
`${chalk.red('✗')} Failed [${chalk.bold(this.stats.total)}] ${guid} ${chalk.dim(`(${duration}ms)`)} - ${errorOrException.message}`,
180+
`${chalk.red('✗')} Failed [${chalk.bold(this.stats.total)}] ${guid} ${chalk.dim(`(${duration}ms)`)} [${chalk.bold(updatedBy)}] - ${errorOrException.message}`,
180181
);
181182

182183
this.rabbitMQMonitorService.recordMessageProcessingDuration(

apps/osint/src/workers/guilds.worker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ export class GuildsWorker {
210210
message.data?.name && message.data?.realm
211211
? `${message.data.name}@${message.data.realm}`
212212
: 'unknown';
213+
const updatedBy = message.data?.updatedBy || 'unknown';
213214

214215
this.logger.error(
215-
`${chalk.red('✗')} Failed [${chalk.bold(this.stats.total)}] ${guid} ${chalk.dim(`(${duration}ms)`)} - ${errorOrException.message}`,
216+
`${chalk.red('✗')} Failed [${chalk.bold(this.stats.total)}] ${guid} ${chalk.dim(`(${duration}ms)`)} [${chalk.bold(updatedBy)}] - ${errorOrException.message}`,
216217
);
217218

218219
this.rabbitMQMonitorService.recordMessageProcessingDuration(

0 commit comments

Comments
 (0)