Browse Source

Add additional logging

Change-Id: I5e2b5487afd4b63d597fbb1d4a7a9c27738fa734
tags/0.0.4
Jonathan Harker 4 years ago
parent
commit
b401ce7b72

+ 3
- 0
src/main/java/org/jenkinsci/plugins/ZMQEventPublisher/ZMQRunnable.java View File

@@ -96,11 +96,14 @@ public class ZMQRunnable implements Runnable {
96 96
                 bindSocket();
97 97
                 if (publisher != null) {
98 98
                     try {
99
+                        LOGGER.log(Level.FINE, "Publishing ZMQ event: " + event);
99 100
                         publisher.send(event.getBytes(), 0);
100 101
                     } catch (ZMQException e) {
101 102
                         LOGGER.log(Level.INFO,
102 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 109
             // Catch all exceptions so that this thread does not die.

Loading…
Cancel
Save