Skip to content

Commit e916389

Browse files
committed
refactor: change apps logger to use the redaction paths
1 parent 48d3883 commit e916389

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/meteor/ee/server/apps/orchestrator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import * as path from 'path';
55
import { registerOrchestrator } from '@rocket.chat/apps';
66
import { EssentialAppDisabledException } from '@rocket.chat/apps-engine/definition/exceptions';
77
import { AppManager } from '@rocket.chat/apps-engine/server/AppManager';
8-
import { Logger } from '@rocket.chat/logger';
98
import { AppLogs, Apps as AppsModel, AppsPersistence, Statistics } from '@rocket.chat/models';
109
import { Meteor } from 'meteor/meteor';
1110

1211
import { AppServerNotifier, AppsRestApi, AppUIKitInteractionApi } from './communication';
12+
import { redactionFieldPaths } from './lib/redactor';
1313
import { MarketplaceAPIClient } from './marketplace/MarketplaceAPIClient';
1414
import { isTesting } from './marketplace/isTesting';
1515
import { AppRealLogStorage, AppRealStorage, ConfigurableAppSourceStorage } from './storage';
@@ -28,6 +28,7 @@ import {
2828
} from '../../../app/apps/server/converters';
2929
import { AppThreadsConverter } from '../../../app/apps/server/converters/threads';
3030
import { settings } from '../../../app/settings/server';
31+
import { SystemLogger } from '../../../server/lib/logger/system';
3132
import { canEnableApp } from '../../app/license/server/canEnableApp';
3233

3334
const DISABLED_PRIVATE_APP_INSTALLATION = ['yes', 'true'].includes(String(process.env.DISABLE_PRIVATE_APP_INSTALLATION).toLowerCase());
@@ -44,7 +45,7 @@ export class AppServerOrchestrator {
4445
return;
4546
}
4647

47-
this._rocketchatLogger = new Logger('Rocket.Chat Apps');
48+
this._rocketchatLogger = SystemLogger.logger.child({ name: 'Rocket.Chat Apps' }, { redact: redactionFieldPaths });
4849

4950
this._model = AppsModel;
5051
this._logModel = AppLogs;

0 commit comments

Comments
 (0)