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();
consumer.close();
}
}
-
+ @Override
protected void doShutdown() throws Exception {
super.doShutdown();
if (consumer != null) {
}
} 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) {