From 3ce2cc25bb8e623788fdfaf1ab5a804122a93473 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Fri, 8 Feb 2013 22:14:18 +0000 Subject: systemd-python: MESSAGE_ID as UUID for Journal --- src/python-systemd/journal.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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, -- cgit v1.2.3-54-g00ecf