chiark / gitweb /
logs-show: print a debug message when we skip entries without MESSAGE= fields
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jun 2015 18:28:20 +0000 (20:28 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:48 +0000 (10:03 +0100)
src/shared/logs-show.c

index ac5eb16..068da46 100644 (file)
@@ -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);