diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-15 14:27:33 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-15 14:27:33 +0100 |
commit | 1afd79df5f1da6ce6da8dd594bc4fb32796acb9b (patch) | |
tree | 43fd082dbf76c2ea33c00a374ba4206ba8001084 | |
parent | 4db33436f62824f17447dcbe84425d0a0410ccae (diff) | |
download | rsyslog-1afd79df5f1da6ce6da8dd594bc4fb32796acb9b.tar.gz rsyslog-1afd79df5f1da6ce6da8dd594bc4fb32796acb9b.tar.bz2 rsyslog-1afd79df5f1da6ce6da8dd594bc4fb32796acb9b.zip |
bugfix: imklog issued wrong facility in error messages
...what could lead to problems in other parts of the code
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | plugins/imklog/bsd.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -5,6 +5,8 @@ Version 7.3.6 [devel] 2012-12-?? - impstats: added ability to write stats records to local file and avoid going through the syslog log stream. syslog logging can now also be turned off (see doc for details). +- bugfix: imklog issued wrong facility in error messages + ...what could lead to problems in other parts of the code - fix compile problem in imklog - added capability to output thread-id-to-function debug info This is a useful debug aid, but nothing of concern for regular users. diff --git a/plugins/imklog/bsd.c b/plugins/imklog/bsd.c index 0fbee491..9c2eebb2 100644 --- a/plugins/imklog/bsd.c +++ b/plugins/imklog/bsd.c @@ -172,7 +172,7 @@ klogWillRun(modConfData_t *pModConf) fklog = open((char*)GetPath(pModConf), O_RDONLY, 0); if (fklog < 0) { - imklogLogIntMsg(RS_RET_ERR_OPEN_KLOG, "imklog: cannot open kernel log(%s): %s.", + imklogLogIntMsg(LOG_ERR, "imklog: cannot open kernel log(%s): %s.", GetPath(pModConf), rs_strerror_r(errno, errmsg, sizeof(errmsg))); ABORT_FINALIZE(RS_RET_ERR_OPEN_KLOG); } |