Add better debugging for Bus connections

This commit is contained in:
Garrett Mills 2022-03-30 18:02:17 -05:00
parent a590d78155
commit 508d92f759
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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))
}