summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2013-02-08 22:14:18 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-05 14:19:14 -0400
commit98da3b4ec42e12f137644f783171f19ad10744eb (patch)
tree4f206247d5ea1ac0663cf914859e90699ba45d2d /systemd
parent5ec357b0714df671970fb5f6716793f63702c6ac (diff)
downloadpython-systemd-98da3b4ec42e12f137644f783171f19ad10744eb.tar.gz
systemd-python: MESSAGE_ID as UUID for Journal
Diffstat (limited to 'systemd')
-rw-r--r--systemd/journal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/systemd/journal.py b/systemd/journal.py
index 1f0aafc..fafddaa 100644
--- a/systemd/journal.py
+++ b/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,