mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
make the tryForTime output less noisy
This commit is contained in:
parent
b3f2d5bfed
commit
25e7d2976e
1 changed files with 1 additions and 5 deletions
|
@ -148,12 +148,8 @@ define(function (require) {
|
|||
|
||||
return Promise
|
||||
.try(block)
|
||||
.then(function tryForTimeSuccess(resolved) {
|
||||
self.debug('tryForTime success in about ' + (lastTry - start) + ' ms');
|
||||
return resolved;
|
||||
})
|
||||
.catch(function tryForTimeCatch(err) {
|
||||
self.debug('tryForTime failure, retry in ' + retryDelay + 'ms - ' + err.message);
|
||||
self.debug('tryForTime failure: ' + err.message);
|
||||
tempMessage = err.message;
|
||||
return Promise.delay(retryDelay).then(attempt);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue