test: suppress logs generated by journal tests
Note, journal_file_dump() is only used by tests. Closes #33035.
This commit is contained in:
committed by
Daan De Meyer
parent
61fdb5b214
commit
36c5035f2a
@@ -3801,35 +3801,35 @@ void journal_file_dump(JournalFile *f) {
|
||||
case OBJECT_ENTRY:
|
||||
assert(s);
|
||||
|
||||
printf("Type: %s seqnum=%"PRIu64" monotonic=%"PRIu64" realtime=%"PRIu64"\n",
|
||||
s,
|
||||
le64toh(o->entry.seqnum),
|
||||
le64toh(o->entry.monotonic),
|
||||
le64toh(o->entry.realtime));
|
||||
log_info("Type: %s seqnum=%"PRIu64" monotonic=%"PRIu64" realtime=%"PRIu64"\n",
|
||||
s,
|
||||
le64toh(o->entry.seqnum),
|
||||
le64toh(o->entry.monotonic),
|
||||
le64toh(o->entry.realtime));
|
||||
break;
|
||||
|
||||
case OBJECT_TAG:
|
||||
assert(s);
|
||||
|
||||
printf("Type: %s seqnum=%"PRIu64" epoch=%"PRIu64"\n",
|
||||
s,
|
||||
le64toh(o->tag.seqnum),
|
||||
le64toh(o->tag.epoch));
|
||||
log_info("Type: %s seqnum=%"PRIu64" epoch=%"PRIu64"\n",
|
||||
s,
|
||||
le64toh(o->tag.seqnum),
|
||||
le64toh(o->tag.epoch));
|
||||
break;
|
||||
|
||||
default:
|
||||
if (s)
|
||||
printf("Type: %s \n", s);
|
||||
log_info("Type: %s \n", s);
|
||||
else
|
||||
printf("Type: unknown (%i)", o->object.type);
|
||||
log_info("Type: unknown (%i)", o->object.type);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
c = COMPRESSION_FROM_OBJECT(o);
|
||||
if (c > COMPRESSION_NONE)
|
||||
printf("Flags: %s\n",
|
||||
compression_to_string(c));
|
||||
log_info("Flags: %s\n",
|
||||
compression_to_string(c));
|
||||
|
||||
if (p == le64toh(f->header->tail_object_offset))
|
||||
p = 0;
|
||||
|
||||
Reference in New Issue
Block a user