diff options
author | David Sommerseth <davids@redhat.com> | 2015-11-12 15:14:12 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2015-11-12 15:16:19 +0100 |
commit | 601ef99ca66f694c1c7e27c97be0554572f5b6ad (patch) | |
tree | 8ce98bf8a196d095df15cab30e84eb6e8bb0227d /LogActio/Reporters/SMTPreporter.py | |
parent | eea95bcc2850a1370b50e2db7506bb3f9aaec557 (diff) | |
download | logactio-601ef99ca66f694c1c7e27c97be0554572f5b6ad.tar.gz logactio-601ef99ca66f694c1c7e27c97be0554572f5b6ad.tar.xz logactio-601ef99ca66f694c1c7e27c97be0554572f5b6ad.zip |
Improve the message passing to the Reporter modules
The message sent to the Reporter modules contained a string of
each regex match group values separated by a pipe (|). This was
not flexible enough, so this change will send all the regex match
groups as a Python list to the Reporter.
The existing Reporter modules have currently just been modified
to stitch together the message list as a string identical to the
old behaviour now, to ensure backwards compatibility for now.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'LogActio/Reporters/SMTPreporter.py')
-rw-r--r-- | LogActio/Reporters/SMTPreporter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LogActio/Reporters/SMTPreporter.py b/LogActio/Reporters/SMTPreporter.py index bf042f9..802a36a 100644 --- a/LogActio/Reporters/SMTPreporter.py +++ b/LogActio/Reporters/SMTPreporter.py @@ -133,7 +133,7 @@ class SMTPreporter(ReporterQueue.ReporterQueue): LogActio have detected %s events in the %s log file since it started running.\n The following information was extracted:\n %s -""" % (count, logfile, "\n".join(msg.split("|")))} +""" % (count, logfile, "\n".join(msg))} # Queue the message for sending self._QueueMsg(0, msg) |