diff options
Diffstat (limited to 'systemd/journal.py')
-rw-r--r-- | systemd/journal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index 83e3004..524ca9f 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -394,10 +394,10 @@ 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: + elif isinstance(value, str): return field + '=' + value + else: + return field + '=' + str(value) def send(MESSAGE, MESSAGE_ID=None, CODE_FILE=None, CODE_LINE=None, CODE_FUNC=None, |