summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-07 17:29:43 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-07 17:29:43 +0100
commit58477b825fb84e5181bbaa92fac542965d3aa0e7 (patch)
tree73f7436f56ba75fdd8b7ca6ccd55a4d9e2f8c553 /action.c
parentfb81cf202c0277f48c75f777fa47e4db4e59f0a3 (diff)
parent3bec3ef53e6e54cc94d9ed0142a2304729092282 (diff)
downloadrsyslog-58477b825fb84e5181bbaa92fac542965d3aa0e7.tar.gz
rsyslog-58477b825fb84e5181bbaa92fac542965d3aa0e7.tar.bz2
rsyslog-58477b825fb84e5181bbaa92fac542965d3aa0e7.zip
Merge branch 'master' into master-ruleeng
Diffstat (limited to 'action.c')
-rw-r--r--action.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/action.c b/action.c
index 29725046..6442817e 100644
--- a/action.c
+++ b/action.c
@@ -69,7 +69,7 @@
* beast.
* rgerhards, 2011-06-15
*
- * Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2013 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -114,6 +114,7 @@
#include "unicode-helper.h"
#include "atomic.h"
#include "ruleset.h"
+#include "parserif.h"
#include "statsobj.h"
#define NO_TIME_PROVIDED 0 /* indicate we do not provide any cached time */
@@ -473,6 +474,12 @@ actionConstructFinalize(action_t *pThis, struct nvlst *lst)
qqueueDbgPrint(pThis->pQueue);
DBGPRINTF("Action %p: queue %p created\n", pThis, pThis->pQueue);
+
+ if(pThis->eParamPassing == ACT_MSG_PASSING && pThis->pQueue->qType != QUEUETYPE_DIRECT) {
+ parser_warnmsg("module %s with message passing mode uses "
+ "non-direct queue. This most probably leads to undesired "
+ "results", (char*)modGetName(pThis->pMod));
+ }
/* and now reset the queue params (see comment in its function header!) */
actionResetQueueParams();