From: Steven Hiscocks Date: Fri, 8 Feb 2013 22:14:18 +0000 (+0000) Subject: systemd-python: MESSAGE_ID as UUID for Journal X-Git-Tag: v198~140^2~34 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3ce2cc25bb8e623788fdfaf1ab5a804122a93473;p=elogind.git systemd-python: MESSAGE_ID as UUID for Journal --- diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index 1f0aafc7f..fafddaa27 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,