Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 2b829c6

Browse files
committed
fix: fix skip logging on exporter closing
Change-Id: I6fbe6935d51dfb67aaba5500ca391abc5fec9401
1 parent 0a2bf6c commit 2b829c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/csm/exporter/BigtableCloudMonitoringExporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public void onFailure(Throwable throwable) {
195195
RuntimeException asyncWrapper = new RuntimeException("export failed", throwable);
196196
asyncWrapper.setStackTrace(stackTrace);
197197

198-
if (state.get() != State.Closing || state.get() != State.Closed) {
198+
if (state.get() != State.Closing && state.get() != State.Closed) {
199199
// ignore the export warning when client is shutting down
200200
LOGGER.log(Level.WARNING, msg, asyncWrapper);
201201
}

0 commit comments

Comments
 (0)