Skip to content

Commit 9623994

Browse files
AntonZarutskypongad
authored andcommitted
make PollingSubscriberConnection less chatty (#2014)
It looks like library try to recover in case of failed pull. It make sense to change logging level to Warning in order to distinguish from critical errors.
1 parent 46b0a49 commit 9623994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/PollingSubscriberConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void onFailure(Throwable cause) {
180180
return;
181181
}
182182
if (StatusUtil.isRetryable(cause)) {
183-
logger.log(Level.SEVERE, "Failed to pull messages (recoverable): ", cause);
183+
logger.log(Level.WARNING, "Failed to pull messages (recoverable): ", cause);
184184
executor.schedule(
185185
new Runnable() {
186186
@Override

0 commit comments

Comments
 (0)