--- a/pvl/syslog/syslog.py Sat Jan 26 11:35:46 2013 +0200
+++ b/pvl/syslog/syslog.py Sat Jan 26 11:48:02 2013 +0200
@@ -83,7 +83,7 @@
def main (self, poll=None) :
"""
- yield items from syslog source, polling as given.
+ Yield active syslog sources, polling as given.
Returns once no more lines are available.
@@ -98,10 +98,8 @@
# mainloop
while True :
- # pull in messages
- for item in self :
- log.debug("%s", item)
- yield item
+ # caller is responsible for reading them!
+ yield self
# poll
if poll :