consumer = consumerBuilder.build();
} catch (MalformedURLException | GeneralSecurityException e) {
- logger.error(RouterCoreMsgs.EVENT_CONSUMER_CREATION_EXCEPTION, e.getLocalizedMessage());
+ logger.error(RouterCoreMsgs.EVENT_CONSUMER_CREATION_EXCEPTION, e, e.getLocalizedMessage());
}
}
int processCount = 0;
- Iterable<String> messages = null;
-
- messages = consumer.fetch();
+ Iterable<String> messages = consumer.fetch();
String topic = endpoint.getEventTopic();
}
} catch (Exception e) {
- logger.error(RouterCoreMsgs.EVENT_PROCESSING_EXCEPTION, e.getLocalizedMessage());
+ logger.error(RouterCoreMsgs.EVENT_PROCESSING_EXCEPTION,e,e.getLocalizedMessage());
} finally {
// log exception if an exception occurred and was not handled
if (message.getException() != null) {