bin/pvl.verkko-syslog
changeset 55 cbdd49b76f16
parent 51 96d204b146b4
child 58 64885a7c6e85
--- 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...")