summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWesley Bowman <wesley@channable.com>2017-03-13 08:51:38 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-19 13:33:32 -0400
commit08857486e6f6b2caa5556ac20c9e1c8bd870f292 (patch)
tree92300372ef6491751a8b747dc7bb33da7ca87fce
parent84371c2cfda49483f6dabc6bb85cb0131df1053e (diff)
downloadpython-systemd-08857486e6f6b2caa5556ac20c9e1c8bd870f292.tar.gz
Remove mid from JournalHandler
Removed mid variable from JournalHandler since the MESSAGE_ID is already in the extras variable. MESSAGE_ID was being set to None, but this won't appear in the logs.
-rw-r--r--systemd/journal.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index e23e5a5..c98a85b 100644
--- a/systemd/journal.py
+++ b/systemd/journal.py
@@ -575,7 +575,6 @@ class JournalHandler(_logging.Handler):
try:
msg = self.format(record)
pri = self.map_priority(record.levelno)
- mid = getattr(record, 'MESSAGE_ID', None)
extras = {k: str(v) for k, v in self._extra.items()}
extras.update({
k: str(v) for k, v in record.__dict__.items()
@@ -591,7 +590,6 @@ class JournalHandler(_logging.Handler):
extras['CODE_ARGS'] = str(record.args)
self.send(msg,
- MESSAGE_ID=mid,
PRIORITY=format(pri),
LOGGER=record.name,
THREAD_NAME=record.threadName,