summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-25 16:14:06 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-25 16:14:06 +0100
commit809c7e3cdcba3bef8d29702f37c3c8b580c3d1bd (patch)
tree3298915a1d58ebb1bc5409f6541fbdd3f95abf41 /action.c
parent06b98a56d4422647cffae9b52577cf2ae8aa8991 (diff)
downloadrsyslog-809c7e3cdcba3bef8d29702f37c3c8b580c3d1bd.tar.gz
rsyslog-809c7e3cdcba3bef8d29702f37c3c8b580c3d1bd.tar.xz
rsyslog-809c7e3cdcba3bef8d29702f37c3c8b580c3d1bd.zip
enhanced module debug output
... and addes some (later-to-be-removed) debug code to support finding a problem in transaction handling.
Diffstat (limited to 'action.c')
-rw-r--r--action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/action.c b/action.c
index 07f14c24..f2743124 100644
--- a/action.c
+++ b/action.c
@@ -769,9 +769,11 @@ finishBatch(action_t *pThis)
if(pThis->eState == ACT_STATE_RDY)
FINALIZE; /* nothing to do */
+DBGPRINTF("finishBatch was called\n");
CHKiRet(actionPrepare(pThis));
if(pThis->eState == ACT_STATE_ITX) {
iRet = pThis->pMod->mod.om.endTransaction(pThis->pModData);
+DBGPRINTF("finishBatch returned %d for endTransaction\n", iRet);
switch(iRet) {
case RS_RET_OK:
actionCommitted(pThis);
@@ -884,6 +886,7 @@ submitBatch(action_t *pAction, batch_t *pBatch, int nElem, int *pbShutdownImmedi
bDone = 0;
do {
localRet = tryDoAction(pAction, pBatch, &nElem, pbShutdownImmediate);
+dbgprintf("submitBatch: state of tryDoAction %d\n", localRet);
if(localRet == RS_RET_FORCE_TERM)
FINALIZE;
if( localRet == RS_RET_OK