Skip to content

Commit 0885748

Browse files
wesleybowmankeszybz
authored andcommitted
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.
1 parent 84371c2 commit 0885748

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

systemd/journal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ def emit(self, record):
575575
try:
576576
msg = self.format(record)
577577
pri = self.map_priority(record.levelno)
578-
mid = getattr(record, 'MESSAGE_ID', None)
579578
extras = {k: str(v) for k, v in self._extra.items()}
580579
extras.update({
581580
k: str(v) for k, v in record.__dict__.items()
@@ -591,7 +590,6 @@ def emit(self, record):
591590
extras['CODE_ARGS'] = str(record.args)
592591

593592
self.send(msg,
594-
MESSAGE_ID=mid,
595593
PRIORITY=format(pri),
596594
LOGGER=record.name,
597595
THREAD_NAME=record.threadName,

0 commit comments

Comments
 (0)