journalctl: show fields requested with --field in full
I see little point in silently truncating fields when they are explictly requested. With this change e.g. journalctl -b MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518 --field=BOOTCHART works as expected.
This commit is contained in:
parent
44df3e637f
commit
21ae45930d
|
@ -1123,6 +1123,12 @@ int main(int argc, char *argv[]) {
|
|||
const void *data;
|
||||
size_t size;
|
||||
|
||||
r = sd_journal_set_data_threshold(j, 0);
|
||||
if (r < 0) {
|
||||
log_error("Failed to unset data size threshold");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
r = sd_journal_query_unique(j, arg_field);
|
||||
if (r < 0) {
|
||||
log_error("Failed to query unique data objects: %s", strerror(-r));
|
||||
|
|
Loading…
Reference in a new issue