mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
logs-show: print a debug message when we skip entries without MESSAGE= fields
This commit is contained in:
parent
b3d4ef81f6
commit
07d210255b
@ -274,8 +274,10 @@ static int output_short(
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to get journal fields: %m");
|
||||
|
||||
if (!message)
|
||||
if (!message) {
|
||||
log_debug("Skipping message without MESSAGE= field.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(flags & OUTPUT_SHOW_ALL))
|
||||
strip_tab_ansi(&message, &message_len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user