aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/logwatcher.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/logwatcher.py b/bin/logwatcher.py
index 1abeb4a..d76b0a1 100644
--- a/bin/logwatcher.py
+++ b/bin/logwatcher.py
@@ -1,9 +1,11 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3from __future__ import print_function
4
3import zmq 5import zmq
4 6
5s = zmq.Context.instance().socket(zmq.SUB) 7s = zmq.Context.instance().socket(zmq.SUB)
6s.setsockopt(zmq.SUBSCRIBE, '') 8s.setsockopt(zmq.SUBSCRIBE, b'')
7s.connect('tcp://127.0.0.1:33445') 9s.connect('tcp://127.0.0.1:33445')
8 10
9poller = zmq.Poller() 11poller = zmq.Poller()