From a1cacfa9b09066b3272f144df4d83ddf2c7da23d Mon Sep 17 00:00:00 2001 From: Milan Bartos Date: Wed, 20 Feb 2013 08:52:28 +0100 Subject: Added internal log info when message from journal doesn't have MESSAGE modified: plugins/imjournal/imjournal.c --- plugins/imjournal/imjournal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/imjournal/imjournal.c b/plugins/imjournal/imjournal.c index cf5569f3..bdfc7756 100644 --- a/plugins/imjournal/imjournal.c +++ b/plugins/imjournal/imjournal.c @@ -149,7 +149,8 @@ readjournal() { /* Get message text */ if (sd_journal_get_data(j, "MESSAGE", &get, &length) < 0) { - iRet = RS_RET_OK; // XXX there should be some internal logging, need RS_RET_OK to keep reading msgs + logmsgInternal(NO_ERRCODE, LOG_SYSLOG|LOG_INFO, "log message from journal doesn't have MESSAGE", 0); + iRet = RS_RET_OK; goto ret; } message = strndup(get+8, length-8); -- cgit v1.2.3