@@ -5,11 +5,11 @@ import * as path from 'path';
55import { registerOrchestrator } from '@rocket.chat/apps' ;
66import { EssentialAppDisabledException } from '@rocket.chat/apps-engine/definition/exceptions' ;
77import { AppManager } from '@rocket.chat/apps-engine/server/AppManager' ;
8- import { Logger } from '@rocket.chat/logger' ;
98import { AppLogs , Apps as AppsModel , AppsPersistence , Statistics } from '@rocket.chat/models' ;
109import { Meteor } from 'meteor/meteor' ;
1110
1211import { AppServerNotifier , AppsRestApi , AppUIKitInteractionApi } from './communication' ;
12+ import { redactionFieldPaths } from './lib/redactor' ;
1313import { MarketplaceAPIClient } from './marketplace/MarketplaceAPIClient' ;
1414import { isTesting } from './marketplace/isTesting' ;
1515import { AppRealLogStorage , AppRealStorage , ConfigurableAppSourceStorage } from './storage' ;
@@ -28,6 +28,7 @@ import {
2828} from '../../../app/apps/server/converters' ;
2929import { AppThreadsConverter } from '../../../app/apps/server/converters/threads' ;
3030import { settings } from '../../../app/settings/server' ;
31+ import { SystemLogger } from '../../../server/lib/logger/system' ;
3132import { canEnableApp } from '../../app/license/server/canEnableApp' ;
3233
3334const 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