@imqueue/core 1.13.0 → 1.13.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imqueue/core",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "Simple JSON-based messaging queue for inter service communication",
5
5
  "keywords": [
6
6
  "message-queue",
package/src/RedisQueue.js CHANGED
@@ -494,7 +494,12 @@ class RedisQueue extends events_1.EventEmitter {
494
494
  onReadyHandler(options, context, channel, resolve) {
495
495
  return (async () => {
496
496
  this.logger.info('%s: %s channel connected, host %s, pid %s', context.name, channel, this.redisKey, process.pid);
497
- await this.setChannelName(context[channel], context.name, options.prefix || '', channel);
497
+ try {
498
+ await this.setChannelName(context[channel], context.name, options.prefix || '', channel);
499
+ }
500
+ catch (err) {
501
+ this.logger.warn('Error setting channel name:', err);
502
+ }
498
503
  switch (channel) {
499
504
  case 'reader':
500
505
  this.read();
package/src/profile.js CHANGED
@@ -204,6 +204,8 @@ function profile(options) {
204
204
  result.then((res) => {
205
205
  logDebugInfo(debugOptions);
206
206
  return res;
207
+ }).catch(() => {
208
+ logDebugInfo(debugOptions);
207
209
  });
208
210
  return result;
209
211
  }