summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-29 16:52:56 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-29 16:52:56 +0100
commit8f27fab8340f39b070d2b6734e2f9005f12d61b9 (patch)
tree986704fcbc4aed674b82a2074e5f60d76d09221a
parent2a1ad9d63114573e57c7e3dadaa24226a2045878 (diff)
downloadrsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.tar.gz
rsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.tar.bz2
rsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.zip
add debug output for worker actions
-rw-r--r--action.c1
-rw-r--r--runtime/wti.c2
-rw-r--r--tools/omfile.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/action.c b/action.c
index f9297a55..619d37b6 100644
--- a/action.c
+++ b/action.c
@@ -916,6 +916,7 @@ actionCallDoAction(action_t *pThis, msg_t *pMsg, void *actParams, wti_t *pWti)
getActStateName(pThis), pThis->iActionNbr);
if(pWti->actWrkrData[pThis->iActionNbr] == NULL) {
+dbgprintf("DDDD: wti %p create new worker instance for action %d\n", pWti, pThis->iActionNbr);
DBGPRINTF("we need to create a new action worker instance for "
"action %d\n", pThis->iActionNbr);
CHKiRet(pThis->pMod->mod.om.createWrkrInstance(&(pWti->actWrkrData[pThis->iActionNbr]), pThis->pModData));
diff --git a/runtime/wti.c b/runtime/wti.c
index e9d3599d..545d5179 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -292,6 +292,7 @@ wtiWorker(wti_t *pThis)
dbgSetThrdName(pThis->pszDbgHdr);
pthread_cleanup_push(wtiWorkerCancelCleanup, pThis);
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &iCancelStateSave);
+dbgprintf("DDDD: wti %p: worker starting\n", pThis);
/* now we have our identity, on to real processing */
while(1) { /* loop will be broken below - need to do mutex locks */
@@ -341,6 +342,7 @@ wtiWorker(wti_t *pThis)
/* indicate termination */
pthread_cleanup_pop(0); /* remove cleanup handler */
pthread_setcancelstate(iCancelStateSave, NULL);
+dbgprintf("DDDD: wti %p: worker exiting\n", pThis);
RETiRet;
}
diff --git a/tools/omfile.c b/tools/omfile.c
index 4300bb4d..cecca07b 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -962,7 +962,6 @@ bufferLine(wrkrInstanceData_t *pWrkrData, uchar *filename, uchar *line)
linebuf_t *lb;
DEFiRet;
- dbgprintf("DDDD: buffering root %p, line %s\n", pWrkrData->pRoot, line);
CHKmalloc(lb = (linebuf_t*) malloc(sizeof(linebuf_t)));
CHKmalloc(lb->filename = ustrdup(filename));
CHKmalloc(lb->ln = ustrdup(line));