Skip to content

Commit f3a0900

Browse files
authored
chore: reduce log level for intentionally ignored exceptions (#751)
1 parent 35df6c9 commit f3a0900

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wrapper/src/main/java/software/amazon/jdbc/plugin/efm/MonitorImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ public void run() {
252252
throw intEx;
253253
} catch (final Exception ex) {
254254
// log and ignore
255-
if (LOGGER.isLoggable(Level.WARNING)) {
255+
if (LOGGER.isLoggable(Level.FINEST)) {
256256
LOGGER.log(
257-
Level.WARNING,
257+
Level.FINEST,
258258
Messages.get(
259259
"MonitorImpl.exceptionDuringMonitoringContinue",
260260
new Object[]{this.hostSpec.getHost()}),
@@ -270,9 +270,9 @@ public void run() {
270270
new Object[] {this.hostSpec.getHost()}));
271271
} catch (final Exception ex) {
272272
// this should not be reached; log and exit thread
273-
if (LOGGER.isLoggable(Level.WARNING)) {
273+
if (LOGGER.isLoggable(Level.FINEST)) {
274274
LOGGER.log(
275-
Level.WARNING,
275+
Level.FINEST,
276276
Messages.get(
277277
"MonitorImpl.exceptionDuringMonitoringStop",
278278
new Object[]{this.hostSpec.getHost()}),

0 commit comments

Comments
 (0)