diff options
author | Milan Bartos <mbartos@redhat.com> | 2013-02-20 08:52:28 +0100 |
---|---|---|
committer | Milan Bartos <mbartos@redhat.com> | 2013-03-05 12:01:51 +0100 |
commit | a1cacfa9b09066b3272f144df4d83ddf2c7da23d (patch) | |
tree | e211f014a4e6eb986ac3f8ba979216bbae427d82 /plugins/imjournal/imjournal.c | |
parent | d31430a4ee353c9522079c36241437c540c64ab2 (diff) | |
download | rsyslog-a1cacfa9b09066b3272f144df4d83ddf2c7da23d.tar.gz rsyslog-a1cacfa9b09066b3272f144df4d83ddf2c7da23d.tar.bz2 rsyslog-a1cacfa9b09066b3272f144df4d83ddf2c7da23d.zip |
Added internal log info when message from journal doesn't have MESSAGE
modified: plugins/imjournal/imjournal.c
Diffstat (limited to 'plugins/imjournal/imjournal.c')
-rw-r--r-- | plugins/imjournal/imjournal.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |