davsclaus commented on code in PR #25767:
URL: https://github.com/apache/camel/pull/25767#discussion_r3871331962


##########
components/camel-paho-mqtt5/src/main/java/org/apache/camel/component/paho/mqtt5/PahoMqtt5Consumer.java:
##########
@@ -83,7 +87,16 @@ public void connectComplete(boolean reconnect, String 
serverURI) {
                         try {
                             client.subscribe(getEndpoint().getTopic(), 
getEndpoint().getConfiguration().getQos());
                         } catch (MqttException e) {
-                            LOG.error("MQTT resubscribe failed {}", 
e.getMessage(), e);
+                            if (stopClient) {
+                                LOG.error("MQTT resubscribe failed on 
reconnect, restarting route for recovery: {}",

Review Comment:
   Can this be a WARN as you restart the route



-- 
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]

Reply via email to