Skip to content

Commit

Permalink
print warning log on degrade
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Apr 27, 2016
1 parent 00bac1d commit 965dd41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ral.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ RalRunner.prototype.throwError = function (err) {
}
if (val) {
return setImmediate(function () {
logger.warning('service degraded since request failed: ' + err.message);
me.emit('data', val);
me.emit('end');
});
Expand Down

0 comments on commit 965dd41

Please sign in to comment.