diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-25 12:30:18 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-25 12:31:45 -0400 |
commit | a5dc4ab856255416e8881ab7d178d46b47285163 (patch) | |
tree | b5ce4caf61a2db3e9399c6239c02d7f1cdf84a2a | |
parent | 2169cdea8d2850a8e4109b2d1f3980d44a361818 (diff) | |
download | python-systemd-a5dc4ab856255416e8881ab7d178d46b47285163.tar.gz |
journal: fix repr of JournalHandler to match python3.6
We get <systemd.journal.JournalHandler object at ...> in older versions,
and <JournalHandler (NOTSET)> in since Python 3.6.
https://github.com/python/cpython/commit/c0752011472790e34d171b89f4b862cc3fd8ad08
-rw-r--r-- | systemd/journal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index cb37150..cc0b8aa 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -542,7 +542,7 @@ class JournalHandler(_logging.Handler): program: >>> JournalHandler(SYSLOG_IDENTIFIER='my-cool-app') - <systemd.journal.JournalHandler object at ...> + <...JournalHandler ...> The following journal fields will be sent: `MESSAGE`, `PRIORITY`, `THREAD_NAME`, `CODE_FILE`, `CODE_LINE`, `CODE_FUNC`, `LOGGER` (name as |