Skip to content

Commit

Permalink
Pull request #445: Pr 4586 add channel id to log messages
Browse files Browse the repository at this point in the history
Merge in MC/connect from pr-4586-add-channel-id-to-log-messages to development

* commit '6e5b8b7af617f304b3f800d5e45dbfe36abb4f8d':
  Update README.md
  Database Reader Logs: Show channel ID in log error messages when polling or initialization failed
  • Loading branch information
narupley committed Jul 27, 2021
2 parents 2a8dac9 + 6e5b8b7 commit 924d186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NextGen Connect Integration Engine (formerly Mirth Connect)
# Mirth Connect by NextGen Healthcare

1. [Useful Links](#useful-links)
2. [General Information](#general-information)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void initConnection() throws ConnectorTaskException {
closeUpdateConnection();

if (attempts++ < maxRetryCount) {
logger.error("An error occurred while initializing the connection, retrying after " + retryInterval + " ms...", e);
logger.error("An error occurred while initializing the connection on channel " + connector.getChannelId() + ", retrying after " + retryInterval + " ms...", e);

// Wait the specified amount of time before retrying
try {
Expand Down Expand Up @@ -204,7 +204,7 @@ public Object poll() throws DatabaseReceiverException, InterruptedException {
DbUtils.closeQuietly(cachedRowSet);

if (attempts++ < maxRetryCount && !connector.isTerminated()) {
logger.error("An error occurred while polling for messages, retrying after " + retryInterval + " ms...", e);
logger.error("An error occurred while polling for messages on channel " + connector.getChannelId() + ", retrying after " + retryInterval + " ms...", e);

// Wait the specified amount of time before retrying
Thread.sleep(retryInterval);
Expand Down

0 comments on commit 924d186

Please sign in to comment.