1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

systemd-python: MESSAGE_ID as UUID for Journal

This commit is contained in:
Steven Hiscocks 2013-02-08 22:14:18 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent 2d0603bd97
commit 3ce2cc25bb

View 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,