| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Unfortunately the "standard" way to access the names in the
defined module does not work. I find it nicer to explicitly import,
e.g. from systemd import journal, because then the examples
correspond more closely to what a user would use. The only
exception is made for JournalHandler, because journal.JournalHandler
is a tad to long.
|
| |
| |
| |
| |
| | |
This is based on the code in https://github.com/systemd/python-systemd/pull/4
by Jacek Konieczny <j.konieczny@eggsoft.pl>.
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
The 'path' parameter was not properly converted from Unicode
and the functions would always fail when a path was provided.
https://github.com/systemd/python-systemd/pull/4
|
| |
|
|
|
|
|
|
| |
The license was originally MIT, but when this module became part of systemd,
it was changed to LGPLv2+. All files had correct headers, so only the LICENSE
file needs updating. Take the opportunity to add classifiers to setup.py.
|
| |
|
|
|
|
|
| |
The library moved to:
https://git.gnome.org/browse/libgudev/
|
|
|
|
| |
Just a couple of trivial oversights.
|
|
|
|
|
| |
Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
|
|
|
|
|
|
| |
In practice this shouldn't make much difference, but
sometimes our headers might be newer, and we want to
test them.
|
|
|
|
|
| |
A parameter which was always null before, now get's set to
the module.
|
|
|
|
|
|
| |
It turns out the latter got removed in Python 3.
https://bugs.freedesktop.org/show_bug.cgi?id=77086
|
|
|
|
|
| |
All files should follow our coding style, and that means 8ch indenting.
Let's correct that.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length).
|
| |
|
|
|
|
|
|
|
| |
The return value of 0 would be treated as failure by mistake,
resulting in " SystemError: error return without exception set".
The way that set_error() is used is changed to be the same
everywhere.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for udev)
From the CODING_STYLE
Try to use this:
void foo() {
}
instead of this:
void foo()
{
}
|
|
|
|
| |
For some reason sphinx doesn't want to show inherited C functions.
|
|
|
|
|
|
|
|
| |
Allows using journal.send('msg', PRIORITY=journal.LOG_CRIT)
Before this commit this results in
TypeError: cannot concatenate 'str' and 'int' objects
and requires passing PRIORITY value as string to work.
|
| |
|
|
|
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=995575
|
|
|
|
|
|
|
| |
src/python-systemd/_reader.c: In function Reader_get_catalog:
src/python-systemd/_reader.c:912:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(mid_len > l);
^
|
| |
|
|
|
|
| |
sphinx, oh sphinx, why do you require manual ficksups all the time?
|
|
|
|
| |
Also export missing flags.
|
|
|
|
|
| |
Back in 6a58bf4135 raising stop iteration was removed from the C
code, but wasn't added in the Python counterpart.
|
|
|
|
|
| |
_listen_fds() is modified to accept unset_environment arg as keyword,
to match new notify().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the just the library part.
SD_JOURNAL_CURRENT_USER flags is added to sd_j_open(), to open
files from current user.
SD_JOURNAL_SYSTEM_ONLY is renamed to SD_JOURNAL_SYSTEM,
and changed to mean to (also) open system files. This way various
flags can be combined, which gives them nicer semantics, especially
if other ones are added later.
Backwards compatibility is kept, because SD_JOURNAL_SYSTEM_ONLY
is equivalent to SD_JOURNAL_SYSTEM if used alone, and before there
we no other flags.
|
|
|
|
| |
Bug-spotted-by: Steven Hiscocks <steven-systemd@hiscocks.me.uk>
|
|
|
|
| |
flush() is potentially costly.
|
| |
|
| |
|
|
|
|
| |
sd_get_uids, sd_get_seats, sd_get_sessions, and sd_get_machine_names.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Arbitrary fields can be attached at the level of the handler,
and they'll be sent with all messages from this handler.
This facility is used to attach SYSLOG_IDENTIFIER to all messages,
since otherwise journald attaches SYSLOG_IDENTIFIER=python or
something similar, which is completely useless.
|
| |
|
|
|
|
| |
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The information about the unit for which files are being parsed
is passed all the way down. This way messages land in the journal
with proper UNIT=... or USER_UNIT=... attribution.
'systemctl status' and 'journalctl -u' not displaying those messages
has been a source of confusion for users, since the journal entry for
a misspelt setting was often logged quite a bit earlier than the
failure to start a unit.
Based-on-a-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
|