catch exception in MQTTAdapterListener.messageArrived()

This commit is contained in:
Amalka Subasinghe 2024-09-24 15:01:17 +05:30
parent b1f45852c1
commit 15d371a890

View File

@ -243,6 +243,8 @@ public class MQTTAdapterListener implements MqttCallback, Runnable {
} else { } else {
inputEventAdapterListener.onEvent(msgText); inputEventAdapterListener.onEvent(msgText);
} }
} catch (Exception ex) {
log.error("Error in message arrive : ", ex);
} finally { } finally {
PrivilegedCarbonContext.endTenantFlow(); PrivilegedCarbonContext.endTenantFlow();
} }