sd-journal: don't assert on invalid field
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 15 Nov 2023 20:44:33 +0000 (21:44 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 15 Nov 2023 21:31:02 +0000 (22:31 +0100)
commit9988043b6ba96b67bdb55fe5d5c7a46e0a993e3f
treebb5c249b12cd9148bf7cd268136198744767937e
parent1fa20dde9fb546e90174d53289bbb6478c390ca7
sd-journal: don't assert on invalid field

Also, field_is_valid(field) already does isempty(field), so drop that as
well.

$ SYSTEMD_LOG_LEVEL=debug journalctl -o verbose -F foo-bar-baz
...
Assertion 'field_is_valid(field)' failed at src/libsystemd/sd-journal/sd-journal.c:2789, function sd_journal_query_unique(). Ignoring.
Failed to query unique data objects: Invalid argument
src/libsystemd/sd-journal/sd-journal.c