diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/logwatcher.py | 4 |
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 | ||
| 3 | from __future__ import print_function | ||
| 4 | |||
| 3 | import zmq | 5 | import zmq |
| 4 | 6 | ||
| 5 | s = zmq.Context.instance().socket(zmq.SUB) | 7 | s = zmq.Context.instance().socket(zmq.SUB) |
| 6 | s.setsockopt(zmq.SUBSCRIBE, '') | 8 | s.setsockopt(zmq.SUBSCRIBE, b'') |
| 7 | s.connect('tcp://127.0.0.1:33445') | 9 | s.connect('tcp://127.0.0.1:33445') |
| 8 | 10 | ||
| 9 | poller = zmq.Poller() | 11 | poller = zmq.Poller() |