diff --git a/packages/admin/src/index.ts b/packages/admin/src/index.ts index f5effa6a9..1e966c5a4 100644 --- a/packages/admin/src/index.ts +++ b/packages/admin/src/index.ts @@ -113,12 +113,7 @@ export default class AdminModule extends IConduitAdmin { patchRouteMiddlewares: this.patchRouteMiddlewares.bind(this), }, ); - this.grpcSdk - .waitForExistence('database') - .then(this.handleDatabase.bind(this)) - .catch(e => { - ConduitGrpcSdk.Logger.error(e.message); - }); + this.grpcSdk.waitForExistence('database').then(this.handleDatabase.bind(this)); } async subscribeToBusEvents() { diff --git a/packages/core/src/GrpcServer.ts b/packages/core/src/GrpcServer.ts index 71f3c6256..7533db6f5 100644 --- a/packages/core/src/GrpcServer.ts +++ b/packages/core/src/GrpcServer.ts @@ -23,7 +23,10 @@ export class GrpcServer { private readonly server: ConduitGrpcServer; private readonly events: EventEmitter; - constructor(private readonly commons: ConduitCommons, private readonly port: number) { + constructor( + private readonly commons: ConduitCommons, + private readonly port: number, + ) { this.events = new EventEmitter(); this.events.setMaxListeners(150); this.server = new ConduitGrpcServer(this.port.toString()); @@ -99,10 +102,7 @@ export class GrpcServer { this.initializeMetrics(); this._grpcSdk .waitForExistence('database') - .then(() => this.commons.getConfigManager().registerAppConfig()) - .catch(e => { - ConduitGrpcSdk.Logger.error(e.message); - }); + .then(() => this.commons.getConfigManager().registerAppConfig()); await this.commons .getConfigManager() .configurePackage(