diff options
author | Steven Hiscocks <steven@hiscocks.me.uk> | 2013-02-08 22:14:18 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 16:57:43 +0100 |
commit | 3ce2cc25bb8e623788fdfaf1ab5a804122a93473 (patch) | |
tree | 9cf025165b90a8ff52f414e54bb17d5ea7720fec /src/python-systemd | |
parent | 2d0603bd976978a62165c79129fc3a1f8d36b9e6 (diff) |
systemd-python: MESSAGE_ID as UUID for Journal
Diffstat (limited to 'src/python-systemd')
-rw-r--r-- | src/python-systemd/journal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index 1f0aafc7fe..fafddaa27e 100644 --- a/src/python-systemd/journal.py +++ b/src/python-systemd/journal.py @@ -22,6 +22,7 @@ import datetime import functools import sys +import uuid import traceback as _traceback import os as _os import logging as _logging @@ -39,6 +40,7 @@ class Journal(_Journal): else: self.default_call = functools.partial(unicode, encoding='utf-8') self.call_dict = { + 'MESSAGE_ID': uuid.UUID, 'PRIORITY': int, 'LEADER': int, 'SESSION_ID': int, |