diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-29 16:59:19 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-29 16:59:19 +0100 |
commit | c4501ebb5263b3b85bc6a854fcc3b6a35e94840a (patch) | |
tree | 8ecca199cfeba599e1465e4426b55ca9a67da3b0 /tools/syslogd.c | |
parent | 56e2157bae6e5ad9e64ef672735a6e6e45e34312 (diff) | |
parent | a98b1822a389cd209cb7a6660060abf995fbf715 (diff) | |
download | rsyslog-c4501ebb5263b3b85bc6a854fcc3b6a35e94840a.tar.gz rsyslog-c4501ebb5263b3b85bc6a854fcc3b6a35e94840a.tar.bz2 rsyslog-c4501ebb5263b3b85bc6a854fcc3b6a35e94840a.zip |
Merge branch 'v7-devel' into tmp
Conflicts:
action.c
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r-- | tools/syslogd.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index ab905d49..f9cc4182 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -21,7 +21,7 @@ * For further information, please see http://www.rsyslog.com * * rsyslog - An Enhanced syslogd Replacement. - * Copyright 2003-2012 Rainer Gerhards and Adiscon GmbH. + * Copyright 2003-2013 Rainer Gerhards and Adiscon GmbH. * * This file is part of rsyslog. * @@ -417,12 +417,10 @@ finalize_it: * function is also passed to the runtime library as the generic error * message handler. -- rgerhards, 2008-04-17 */ -rsRetVal -submitErrMsg(int iErr, uchar *msg) +void +submitErrMsg(const int severity, const int iErr, const uchar *msg) { - DEFiRet; - iRet = logmsgInternal(iErr, LOG_SYSLOG|LOG_ERR, msg, 0); - RETiRet; + logmsgInternal(iErr, LOG_SYSLOG|(severity & 0x07), msg, 0); } @@ -436,7 +434,7 @@ submitMsgWithDfltRatelimiter(msg_t *pMsg) * to log a message orginating from the syslogd itself. */ rsRetVal -logmsgInternal(int iErr, int pri, uchar *msg, int flags) +logmsgInternal(const int iErr, const int pri, const uchar *msg, int flags) { uchar pszTag[33]; msg_t *pMsg; @@ -484,7 +482,6 @@ logmsgInternal(int iErr, int pri, uchar *msg, int flags) * message to the queue engine. */ ratelimitAddMsg(internalMsg_ratelimiter, NULL, pMsg); - //submitMsgWithDfltRatelimiter(pMsg); } finalize_it: RETiRet; @@ -1365,7 +1362,7 @@ InitGlobalClasses(void) /* Intialize the runtime system */ pErrObj = "rsyslog runtime"; /* set in case the runtime errors before setting an object */ CHKiRet(rsrtInit(&pErrObj, &obj)); - CHKiRet(rsrtSetErrLogger(submitErrMsg)); /* set out error handler */ + rsrtSetErrLogger(submitErrMsg); /* Now tell the system which classes we need ourselfs */ pErrObj = "glbl"; |