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