chiark / gitweb /
systemd-python: MESSAGE_ID as UUID for Journal
authorSteven Hiscocks <steven@hiscocks.me.uk>
Fri, 8 Feb 2013 22:14:18 +0000 (22:14 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2013 15:57:43 +0000 (16:57 +0100)
src/python-systemd/journal.py

index 1f0aafc..fafddaa 100644 (file)
@@ -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,