Add better debugging for Bus connections

orm-types
Garrett Mills 2 years ago
parent a590d78155
commit 508d92f759

@ -1,6 +1,6 @@
{
"name": "@extollo/lib",
"version": "0.9.8",
"version": "0.9.9",
"description": "The framework library that lifts up your code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",

@ -199,7 +199,8 @@ export class Bus<TEvent extends Event = Event> extends Unit implements EventBus<
const config = this.config.get('server.bus', {})
if ( Array.isArray(config.connectors) ) {
for ( const connector of (config.connectors as BusConnectorConfig[]) ) {
this.logging.info(`Creating bus connection of type: ${connector.type}`)
this.logging.verbose(`Creating bus connection of type: ${connector.type}`)
this.logging.verbose(new Error().stack)
if ( connector.type === 'redis' ) {
await this.connect(this.make(RedisBus))
}

Loading…
Cancel
Save