summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-17 20:28:20 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-17 20:28:29 +0200
commit07d210255b629ea97f9dc77c0fadcbc1c02be12c (patch)
tree9187abf625b02be74d4fcc842520a86356085552 /src/shared/logs-show.c
parentb3d4ef81f6aaac3df8d15ad0d2e3f78b74c00d28 (diff)
logs-show: print a debug message when we skip entries without MESSAGE= fields
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index ac5eb16f62..068da465d9 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -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);