Added logging for the back off in AbstractEventPublisher as well as information about subsequent retries (#2737)

* Added logging for the back off in AbstractEventPublisher as well as information about subsequent retries

* Adding changeEvent to logging message
This commit is contained in:
deweybat 2022-02-13 09:22:24 -08:00 committed by GitHub
parent 1b2ea54d4f
commit d60a085ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,7 @@ public abstract class AbstractEventPublisher implements EventPublisher {
batch.clear();
} catch (RetriableException ex) {
setNextBackOff();
LOG.error("Failed to publish event {} due to {}, will try again in {} ms", changeEvent, ex, currentBackoffTime);
Thread.sleep(currentBackoffTime);
} catch (Exception e) {
LOG.error("Failed to publish event {}", changeEvent);