@autofleet/rabbit 3.2.19-beta.4 → 3.2.19-beta.5
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 +2 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -494,7 +494,8 @@ class RabbitMq {
|
|
|
494
494
|
return res;
|
|
495
495
|
}
|
|
496
496
|
catch (e) {
|
|
497
|
-
|
|
497
|
+
const isConnected = await this.isConnected();
|
|
498
|
+
logger_1.default.error(`rabbit sendToQueue: failed to send to queue ${queue}, isConnected: ${isConnected}`, { e });
|
|
498
499
|
throw e;
|
|
499
500
|
}
|
|
500
501
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -676,7 +676,8 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
676
676
|
debug(`rabbit: sending to queue ${queue}`, { res });
|
|
677
677
|
return res;
|
|
678
678
|
} catch (e) {
|
|
679
|
-
|
|
679
|
+
const isConnected = await this.isConnected();
|
|
680
|
+
logger.error(`rabbit sendToQueue: failed to send to queue ${queue}, isConnected: ${isConnected}`, { e });
|
|
680
681
|
throw e;
|
|
681
682
|
}
|
|
682
683
|
}
|