--- a/bin/pvl.verkko-syslog Fri Jan 04 20:50:31 2013 +0200
+++ b/bin/pvl.verkko-syslog Fri Jan 04 20:51:12 2013 +0200
@@ -68,23 +68,18 @@
log.info("Process syslog messages...")
for item in syslog :
- if rules :
- match = rules.apply(item)
- else :
- match = None, item['msg']
+ match = rules.apply(item)
if not match :
continue
- tag, line = match
-
- log.info("%s", line)
+ log.info("%s", match)
# TODO: map tag -> target?
if target :
- target(line)
+ target(match)
else :
- print tag, line
+ print match
# done
log.info("Exiting...")