summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-10-12 19:46:25 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-10-13 11:53:37 +0200
commitc12677d35a597137a6c2a23bd39b94142805dd96 (patch)
tree0ecd6f17c4205fb5dabb1cfc1937b4f5f6ed37b7
parentf0bce95d03cfdc3b190aef80029eccc36261616e (diff)
downloadsystemd-c12677d35a597137a6c2a23bd39b94142805dd96.tar.gz
coredumpctl: stop truncating information about coredumpv248.9
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. (cherry picked from commit 384c6207669eb0d92aa0043dbc01957c6c7ff41e) (cherry picked from commit 473627e1c9fcdf8f819ced2bb79cb7e9ff598b0c)
-rw-r--r--src/coredump/coredumpctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 89c4d69856..be0b0d4030 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -554,6 +554,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);