Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…namic-mapper into develop
  • Loading branch information
ck-c8y committed Oct 1, 2024
2 parents 78fd048 + 89a3dd2 commit 4c50cf4
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ public void run() {

try {
listener.onStoppedByErrorAndReconnecting(error);
updateConnectorStatusToFailed(error, topicConfig.getTopic());

} catch (final Exception e) {
// log ("Unexpected error while onStoppedByErrorAndReconnecting() notification",
// e)
Expand All @@ -167,16 +165,6 @@ public void run() {
}
}

protected void updateConnectorStatusToFailed(Exception e, String topic) {
String msg = "Topic:" + topic + " --- " + e.getClass().getName() + ": "
+ e.getMessage();
if (!(e.getCause() == null)) {
msg = msg + " --- Caused by " + e.getCause().getClass().getName() + ": " + e.getCause().getMessage();
}
connectorStatus.setMessage(msg);
connectorStatus.updateStatus(ConnectorStatus.FAILED, false);
}

void close() {
if (closed) { // no atomicity/membars required
return; // since can be called only by one single thread
Expand Down

0 comments on commit 4c50cf4

Please sign in to comment.