summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-25 12:30:18 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-25 12:31:45 -0400
commita5dc4ab856255416e8881ab7d178d46b47285163 (patch)
treeb5ce4caf61a2db3e9399c6239c02d7f1cdf84a2a
parent2169cdea8d2850a8e4109b2d1f3980d44a361818 (diff)
downloadpython-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.py2
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