Skip to content

Commit d47fd74

Browse files
committed
Add backwards compatibility for mapPriority
1 parent 69b4113 commit d47fd74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

systemd/journal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ def __init__(self, level=_logging.NOTSET, **kwargs):
561561

562562
self.send = kwargs.pop('SENDER_FUNCTION', send)
563563
self._extra = kwargs
564-
self.mapPriority = self.map_priority
565564

566565
def emit(self, record):
567566
"""Write `record` as a journal event.
@@ -620,3 +619,5 @@ def map_priority(levelno):
620619
return LOG_CRIT
621620
else:
622621
return LOG_ALERT
622+
623+
mapPriority = map_priority

0 commit comments

Comments
 (0)