chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd43e19
)
logs-show: print a debug message when we skip entries without MESSAGE= fields
author
Lennart Poettering
<lennart@poettering.net>
Wed, 17 Jun 2015 18:28:20 +0000
(20:28 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:03:48 +0000
(10:03 +0100)
src/shared/logs-show.c
patch
|
blob
|
history
diff --git
a/src/shared/logs-show.c
b/src/shared/logs-show.c
index ac5eb16f62dab9c8c8ca24f30919611536034058..068da465d9fcdb816c9230cbe6cc6d251b110939 100644
(file)
--- 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);