Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
chore: fix sonar issue with interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
joerglaumann authored Jun 21, 2023
1 parent 938f3d9 commit 5610249
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.net.URI;
import java.net.URISyntaxException;
import java.util.concurrent.ExecutionException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -78,9 +79,12 @@ private boolean isReachable(String queueName) {
} catch (SdkClientException e) {
LOGGER.error("Queue '{}' is not reachable", queueName, e);
return false;
} catch (Exception e) {
} catch (ExecutionException e) {
LOGGER.error("Health check failed for queue '{}'", queueName, e);
return false;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
return false;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</appender>

<logger name="de.idealo.spring.stream.binder.sqs" level="debug"/>
<logger name="io.awspring.cloud.sqs.listener.source" level="off"/>

<root level="warn">
<appender-ref ref="STDOUT" />
Expand Down

0 comments on commit 5610249

Please sign in to comment.