Change tryForTime error output from 'failure' to 'error', to make it easier to grep the logs for actual failures. (#19707)

This commit is contained in:
CJ Cenizal 2018-06-12 17:19:50 -07:00 committed by GitHub
parent af77bdcd19
commit 77b53db939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,10 +42,10 @@ export function RetryProvider({ getService }) {
.try(block)
.catch(function tryForTimeCatch(err) {
if (err.message === prevMessage) {
log.debug('--- tryForTime failed again with the same message ...');
log.debug('--- tryForTime errored again with the same message ...');
} else {
prevMessage = err.message;
log.debug('--- tryForTime failure: ' + prevMessage);
log.debug('--- tryForTime error: ' + prevMessage);
}
finalMessage = err.stack || err.message;
return bluebird.delay(retryDelay).then(attempt);