Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

lib/messages-archive.js
... ... @@ -11,6 +11,14 @@ const DIRECTION_OUTGOING = 1;
11 11  
12 12 const redisClient = config.redis && redis.createClient(config.redis);
13 13  
  14 +if (!config.redis) {
  15 + logger.warn('Undefined config.redis, messages counter will not work! #05A778E21D7E');
  16 +}
  17 +
  18 +if (!redisClient) {
  19 + logger.warn('Undefined redisClient, messages counter will not work! #1D3EC165E8D9');
  20 +}
  21 +
14 22 function composeRedisCounterKeyword(origin, direction) {
15 23 const directionLabel = direction == DIRECTION_OUTGOING ? 'OUT' : 'IN';
16 24 return `CALMA_MESSAGE_COUNTER_${origin}_${directionLabel}`;
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.9.20",
  3 + "version": "0.9.21",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.9.20",
  3 + "version": "0.9.21",
4 4 "description": "Komodo Common Messaging Center",
5 5 "main": "index.js",
6 6 "scripts": {