Commit 5061722fcfe5d03465e0672cd3c6ddd5e778d7e3

Authored by Adhidarma Hadiwinoto
1 parent 19f1c948bc
Exists in master

log if no redis

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -38,6 +38,9 @@ if (config.redis && config.redis.host) {
38 38 logger.add(winston.transports.Redis, winstonRedisOptions);
39 39 logger.verbose("Add redis log channel", {options: winstonRedisOptions});
40 40 }
  41 +else {
  42 + logger.verbose("Skip create redis log channel because of undefined config.redis.host");
  43 +}
41 44  
42 45  
43 46 function createHttpListener() {