diff options
author | Jonathan Harker <code@gentlydownthe.net> | 2015-01-08 09:50:13 -0500 |
---|---|---|
committer | Jonathan Harker <code@gentlydownthe.net> | 2015-01-14 12:31:47 -0500 |
commit | b401ce7b72243e991feae7237595754bd6ac0faf (patch) | |
tree | d007d751e3c157f5415ed4ed2439fd136fd572e0 | |
parent | 2507e04dd89af34b2333499472a5c8b146f981be (diff) |
Add additional logging
Change-Id: I5e2b5487afd4b63d597fbb1d4a7a9c27738fa734
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.java | 3 |
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. |