| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of generating the list of message ids anew during every build,
the file is generated manually and committed into the
repository. Also, the list of defines is stored in id128-defines.h,
also kept in the repository. Both files should only grow.
This should make build easier. But it also fixes a problem with
systemd, which occasionally drops message definitions. We will keep
them forever, so it should be safe to rely on the presence of message
definitions which systemd does not use anymore.
Fixes #23.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This somewhat breaks backwards compatibility, but not for the
previously documented arguments: floats are now interpreted
differently, but ints and datetime.datetime objects are interpreted
the same as before. But the documentation clearly stated that only
ints and datetime.datetime objects were allowed.
This makes seek_realtime match seek_monotonic and other functions
which take time and follows the principle of least surprise.
Fixes #21.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Let's pass any flags through to the journal functions without checking
validity. Those functions do their own checking, so there's no need to
second-guess.
The semantics for _Reader(flags=0) are a bit changed:
before, this would be transformed into sd_journal_open(SD_J_LOCAL_ONLY).
Now, this results in sd_journal_open(0). Previous behaviour should be
achieved by not specifying the flags at all.
This change is necessary, because previously it was not possible to
pass flags=0 to sd_journal_open(0), i.e. it was not possible to "merge"
journals through the Python interface.
Similarly, Reader(flags=0) now means to open all journals, and
Reader(flags=None) is the same as Reader(flags=LOCAL_ONLY).
|
| | |
|
| |
|
|
|
| |
Those are field names and they should always be ASCII, and converting
them to str automatically makes the answer more useful.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Wrapping the sources to ~80 columns means that the formatted output is
annoying to read. Rewrap to ~74 columns in the output.
Also remove some obsolete descritions of journal permissions and refer
to journalctl(1) instead.
Add some missing docstrings.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
The socket module seems to be missing this in python2.7.
|
| | |
|
| |
|
|
|
|
|
| |
gcc warns that r might be uninitialized, because it doesn't
know that r will be initialized in the 'if' statement.
Initialize the variable to avoid the warning.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Closes #8.
|
| |\ |
|
| | |
| |
| |
| | |
The fix was committed in v226-362-g0260d1d542.
|
| | |
| |
| |
| |
| | |
While we *usually* get those messages from udev, in many tests environments
this will not be true, so just do not try to check the output at all.
|
| | |
| |
| |
| |
| |
| |
| | |
It would be nice to run those tests against fake journal files
with the right content to actually test the matches. But those
tests are still useful because they test that the interface
works as expected.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|