X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpython-systemd%2Fjournal.py;h=9c7e0045e5fddce2a9c354894e009b2f51d23c1e;hp=d0bcd24d1501aa8b800083259947c9320dd4ae36;hb=486cd82c8f7642016895b72bcc09a1bfe885a783;hpb=affba8e90243526be673ad9f9b306a740b8824a6 diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index d0bcd24d1..9c7e0045e 100644 --- a/src/python-systemd/journal.py +++ b/src/python-systemd/journal.py @@ -352,6 +352,8 @@ def get_catalog(mid): def _make_line(field, value): if isinstance(value, bytes): return field.encode('utf-8') + b'=' + value + elif isinstance(value, int): + return field + '=' + str(value) else: return field + '=' + value