Add additional logging
Change-Id: I5e2b5487afd4b63d597fbb1d4a7a9c27738fa734
This commit is contained in:
parent
2507e04dd8
commit
b401ce7b72
|
@ -96,11 +96,14 @@ public class ZMQRunnable implements Runnable {
|
||||||
bindSocket();
|
bindSocket();
|
||||||
if (publisher != null) {
|
if (publisher != null) {
|
||||||
try {
|
try {
|
||||||
|
LOGGER.log(Level.FINE, "Publishing ZMQ event: " + event);
|
||||||
publisher.send(event.getBytes(), 0);
|
publisher.send(event.getBytes(), 0);
|
||||||
} catch (ZMQException e) {
|
} catch (ZMQException e) {
|
||||||
LOGGER.log(Level.INFO,
|
LOGGER.log(Level.INFO,
|
||||||
"Unable to send event. " + e.toString(), e);
|
"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.
|
// Catch all exceptions so that this thread does not die.
|
||||||
|
|
Loading…
Reference in New Issue