Skip to content

Commit

Permalink
Additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
corcoja committed Jan 25, 2022
1 parent 04778e0 commit 746476c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ public void connect() {

// Synchronously connection failed for some reason, try to connect to the server
// asynchronously
logger.warn(
"Failed to connect synchronously to the NATS server! Fall back to asynchronous connection.",
e1);

try {
Nats.connectAsynchronously(options, true);
} catch (InterruptedException e2) {
Expand Down

0 comments on commit 746476c

Please sign in to comment.