diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-10-12 19:46:25 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-10-12 19:48:20 +0200 |
commit | 384c6207669eb0d92aa0043dbc01957c6c7ff41e (patch) | |
tree | d49cfde5e3557fa5f56a9af2761c4d45b1acfc4b /src/coredump | |
parent | cc7ac73ddbb36f7a6c324cf36febb3d5b0501947 (diff) | |
download | systemd-384c6207669eb0d92aa0043dbc01957c6c7ff41e.tar.gz |
coredumpctl: stop truncating information about coredump
With the changes to limit that print 'Found module …' over and over, we were
hitting the journal field message limit, effectively truncating the info output.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1998488.
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredumpctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c index 2eaa56a4fd..3f6537faee 100644 --- a/src/coredump/coredumpctl.c +++ b/src/coredump/coredumpctl.c @@ -563,6 +563,8 @@ static int print_info(FILE *file, sd_journal *j, bool need_space) { assert(file); assert(j); + (void) sd_journal_set_data_threshold(j, 0); + SD_JOURNAL_FOREACH_DATA(j, d, l) { RETRIEVE(d, l, "MESSAGE_ID", mid); RETRIEVE(d, l, "COREDUMP_PID", pid); |