davsclaus commented on code in PR #8971:
URL: https://github.com/apache/camel/pull/8971#discussion_r1061385636
##########
components/camel-plc4x/src/main/java/org/apache/camel/component/plc4x/Plc4XConsumer.java:
##########
@@ -85,6 +86,15 @@ protected void doStart() throws Exception {
}
private void startUnTriggered() {
+ if (plc4XEndpoint.isAutoReconnect() && !plcConnection.isConnected()) {
+ try {
+ plc4XEndpoint.reconnect();
+ LOGGER.debug("Successfully reconnected");
+ } catch (PlcConnectionException e) {
+ LOGGER.error("Unable to reconnect, skipping request", e);
Review Comment:
Maybe tone down the logging to WARN as you are dealing with this error by
skipping.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]