mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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:
parent
af77bdcd19
commit
77b53db939
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue