File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
org-code-javabuilder/lib/src/main/java/org/code/javabuilder Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,10 @@ private void verifyApiClient(String connectionId) {
385
385
this .apiClient .getConnection (connectionRequest );
386
386
} catch (IllegalStateException e ) {
387
387
// This can occur if the api client has been shut down, which we have seen happen on occasion.
388
- // Recreate the api client in this case.
388
+ // Recreate the api client in this case. Log a warning so we can track when this happens.
389
+ Logger .getLogger (MAIN_LOGGER )
390
+ .warning (
391
+ "Received illegal state exception when trying to talk to API Gateway. Recreating api client." );
389
392
this .apiClient =
390
393
AmazonApiGatewayManagementApiClientBuilder .standard ()
391
394
.withEndpointConfiguration (
You can’t perform that action at this time.
0 commit comments