]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredumpctl: stop truncating information about coredump 20992/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 17:46:25 +0000 (19:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 17:48:20 +0000 (19:48 +0200)
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.

src/coredump/coredumpctl.c

index 2eaa56a4fd957cb4623ddf2b76c89449d11a8a67..3f6537faeecc400da5de989b025b8d98695e6526 100644 (file)
@@ -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);