@autofleet/rabbit 3.4.0-beta.0 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -809,6 +809,7 @@ class RabbitMq {
809
809
  logger_1.default.error(`rabbit: error on get connection for new channel ${name} `, { e });
810
810
  throw e;
811
811
  }
812
+ debug('rabbit: getNewChannelOld', { localConnection });
812
813
  const channel = localConnection.createChannel({ ...options });
813
814
  (0, events_1.once)(channel, 'close').then((args) => {
814
815
  logger_1.default.error(`rabbit: channel ${name} closed`);
@@ -827,6 +828,7 @@ class RabbitMq {
827
828
  async getConnectionOld(connection) {
828
829
  return new Promise(async (resolve, reject) => {
829
830
  const { connection: connectionLocal, creatingConnection, connectionCreatedEventName, connectionFailedEventName, blockReconnect, } = connection;
831
+ debug('rabbit: getConnectionOld', { connectionLocal, creatingConnection, blockReconnect });
830
832
  if (blockReconnect) {
831
833
  debug('rabbit: block reconnect');
832
834
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.4.0-beta.0",
3
+ "version": "3.4.0-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
package/src/index.ts CHANGED
@@ -1078,6 +1078,7 @@ class RabbitMq implements IAfRabbitMq {
1078
1078
  logger.error(`rabbit: error on get connection for new channel ${name} `, { e });
1079
1079
  throw e;
1080
1080
  }
1081
+ debug('rabbit: getNewChannelOld', { localConnection });
1081
1082
  const channel = localConnection.createChannel({ ...options });
1082
1083
  once(channel, 'close').then((args) => {
1083
1084
  logger.error(`rabbit: channel ${name} closed`);
@@ -1102,6 +1103,7 @@ class RabbitMq implements IAfRabbitMq {
1102
1103
  connectionFailedEventName,
1103
1104
  blockReconnect,
1104
1105
  } = connection;
1106
+ debug('rabbit: getConnectionOld', { connectionLocal, creatingConnection, blockReconnect });
1105
1107
  if (blockReconnect) {
1106
1108
  debug('rabbit: block reconnect');
1107
1109
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment