summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-18 14:35:27 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-18 14:35:27 +0200
commit08a4fc4ae56f29cc21c997488291f49b83fd1102 (patch)
treef491f58884bfae73bd6d879c5df0bc542b23cbb3 /runtime/rsyslog.c
parent3dc5bda6eb35f27033af2e2b25a37d74771f0a00 (diff)
downloadrsyslog-08a4fc4ae56f29cc21c997488291f49b83fd1102.tar.gz
rsyslog-08a4fc4ae56f29cc21c997488291f49b83fd1102.tar.xz
rsyslog-08a4fc4ae56f29cc21c997488291f49b83fd1102.zip
bugfix: a recent change effectively disabled error messages
Diffstat (limited to 'runtime/rsyslog.c')
-rw-r--r--runtime/rsyslog.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/rsyslog.c b/runtime/rsyslog.c
index 95ac23ef..c05119d8 100644
--- a/runtime/rsyslog.c
+++ b/runtime/rsyslog.c
@@ -103,6 +103,19 @@ static rsRetVal dfltErrLogger(uchar *errMsg)
}
+/* set the error log function
+ * rgerhards, 2008-04-18
+ */
+rsRetVal
+rsrtSetErrLogger(rsRetVal (*errLogger)(uchar*))
+{
+ DEFiRet;
+ assert(errLogger != NULL);
+ glblErrLogger = errLogger;
+ RETiRet;
+}
+
+
/* globally initialze the runtime system
* NOTE: this is NOT thread safe and must not be called concurrently. If that
* ever poses a problem, we may use proper mutex calls - not considered needed yet.