diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-11 14:26:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 14:26:27 -0500 |
commit | 753a4ca5ffbea9e7b937dbe5c567353f9ca21f85 (patch) | |
tree | 7881ff7c011727acc5c9da7078c70b0aaa440455 /systemd/journal.py | |
parent | dce0a855c3281e7051b1cbe0f73386d1c90ef320 (diff) | |
parent | bc691d8e293a593fbd14ad1d592d06f4f490ed29 (diff) | |
download | python-systemd-753a4ca5ffbea9e7b937dbe5c567353f9ca21f85.tar.gz |
Merge pull request #31 from keszybz/is_socket_sockaddr
daemon: add basic support for sd_is_socket_sockaddr
Diffstat (limited to 'systemd/journal.py')
-rw-r--r-- | systemd/journal.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index 48a36b4..83e3004 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -456,8 +456,8 @@ def stream(identifier=None, priority=LOG_INFO, level_prefix=False): newline character is written. >>> from systemd import journal - >>> stream = journal.stream('myapp') - >>> res = stream.write('message...\n') + >>> stream = journal.stream('myapp') # doctest: +SKIP + >>> res = stream.write('message...\n') # doctest: +SKIP will produce the following message in the journal:: @@ -470,8 +470,8 @@ def stream(identifier=None, priority=LOG_INFO, level_prefix=False): This interface can be used conveniently with the print function: >>> from __future__ import print_function - >>> fileobj = journal.stream() - >>> print('message...', file=fileobj) # doctest: +SKIP + >>> stream = journal.stream() # doctest: +SKIP + >>> print('message...', file=stream) # doctest: +SKIP priority is the syslog priority, one of `LOG_EMERG`, `LOG_ALERT`, `LOG_CRIT`, `LOG_ERR`, `LOG_WARNING`, `LOG_NOTICE`, `LOG_INFO`, `LOG_DEBUG`. |