refactor(core): Support multiple log scopes (#11318)

This commit is contained in:
Iván Ovejero
2024-10-22 17:20:14 +02:00
committed by GitHub
parent c863abd083
commit 43f31b86aa
16 changed files with 55 additions and 37 deletions

View File

@@ -27,7 +27,7 @@ export class Subscriber {
// @TODO: Once this class is only ever initialized in scaling mode, throw in the next line instead.
if (config.getEnv('executions.mode') !== 'queue') return;
this.logger = this.logger.withScope('scaling');
this.logger = this.logger.scoped(['scaling', 'pubsub']);
this.client = this.redisClientService.createClient({ type: 'subscriber(n8n)' });