1
0
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:
Lennart Poettering
2015-06-17 20:28:20 +02:00
parent b3d4ef81f6
commit 07d210255b

View File

@ -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);