Add additional logging

Change-Id: I5e2b5487afd4b63d597fbb1d4a7a9c27738fa734
This commit is contained in:
Jonathan Harker 2015-01-08 09:50:13 -05:00
parent 2507e04dd8
commit b401ce7b72
1 changed files with 3 additions and 0 deletions

View File

@ -96,11 +96,14 @@ public class ZMQRunnable implements Runnable {
bindSocket();
if (publisher != null) {
try {
LOGGER.log(Level.FINE, "Publishing ZMQ event: " + event);
publisher.send(event.getBytes(), 0);
} catch (ZMQException e) {
LOGGER.log(Level.INFO,
"Unable to send event. " + e.toString(), e);
}
} else {
LOGGER.log(Level.WARNING, "ZMQ Publisher is NULL");
}
}
// Catch all exceptions so that this thread does not die.