Skip to content

Commit a5dc4ab

Browse files
committed
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. python/cpython@c075201
1 parent 2169cde commit a5dc4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/journal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ class JournalHandler(_logging.Handler):
542542
program:
543543
544544
>>> JournalHandler(SYSLOG_IDENTIFIER='my-cool-app')
545-
<systemd.journal.JournalHandler object at ...>
545+
<...JournalHandler ...>
546546
547547
The following journal fields will be sent: `MESSAGE`, `PRIORITY`,
548548
`THREAD_NAME`, `CODE_FILE`, `CODE_LINE`, `CODE_FUNC`, `LOGGER` (name as

0 commit comments

Comments
 (0)