Add better debugging for Bus connections
This commit is contained in:
parent
a590d78155
commit
508d92f759
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@extollo/lib",
|
"name": "@extollo/lib",
|
||||||
"version": "0.9.8",
|
"version": "0.9.9",
|
||||||
"description": "The framework library that lifts up your code.",
|
"description": "The framework library that lifts up your code.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"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', {})
|
const config = this.config.get('server.bus', {})
|
||||||
if ( Array.isArray(config.connectors) ) {
|
if ( Array.isArray(config.connectors) ) {
|
||||||
for ( const connector of (config.connectors as BusConnectorConfig[]) ) {
|
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' ) {
|
if ( connector.type === 'redis' ) {
|
||||||
await this.connect(this.make(RedisBus))
|
await this.connect(this.make(RedisBus))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user