summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Harker <code@gentlydownthe.net>2015-01-08 09:50:13 -0500
committerJonathan Harker <code@gentlydownthe.net>2015-01-14 12:31:47 -0500
commitb401ce7b72243e991feae7237595754bd6ac0faf (patch)
treed007d751e3c157f5415ed4ed2439fd136fd572e0
parent2507e04dd89af34b2333499472a5c8b146f981be (diff)
Add additional logging
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Code-Review+2: Sergey Lukjanov <slukjanov@mirantis.com> Workflow+1: Sergey Lukjanov <slukjanov@mirantis.com> Code-Review+1: Khai Do <zaro0508@gmail.com> Code-Review+1: Ramy Asselin <ramy.asselin@hp.com> Submitted-by: Jenkins Submitted-at: Mon, 16 Mar 2015 12:06:07 +0000 Reviewed-on: https://review.openstack.org/145837 Project: openstack-infra/zmq-event-publisher Branch: refs/heads/master
-rw-r--r--src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java
index 588c8d0..7e54276 100644
--- a/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java
+++ b/src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java
@@ -96,11 +96,14 @@ public class ZMQRunnable implements Runnable {
96 bindSocket(); 96 bindSocket();
97 if (publisher != null) { 97 if (publisher != null) {
98 try { 98 try {
99 LOGGER.log(Level.FINE, "Publishing ZMQ event: " + event);
99 publisher.send(event.getBytes(), 0); 100 publisher.send(event.getBytes(), 0);
100 } catch (ZMQException e) { 101 } catch (ZMQException e) {
101 LOGGER.log(Level.INFO, 102 LOGGER.log(Level.INFO,
102 "Unable to send event. " + e.toString(), e); 103 "Unable to send event. " + e.toString(), e);
103 } 104 }
105 } else {
106 LOGGER.log(Level.WARNING, "ZMQ Publisher is NULL");
104 } 107 }
105 } 108 }
106 // Catch all exceptions so that this thread does not die. 109 // Catch all exceptions so that this thread does not die.