diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-29 16:52:56 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-29 16:52:56 +0100 |
commit | 8f27fab8340f39b070d2b6734e2f9005f12d61b9 (patch) | |
tree | 986704fcbc4aed674b82a2074e5f60d76d09221a | |
parent | 2a1ad9d63114573e57c7e3dadaa24226a2045878 (diff) | |
download | rsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.tar.gz rsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.tar.bz2 rsyslog-8f27fab8340f39b070d2b6734e2f9005f12d61b9.zip |
add debug output for worker actions
-rw-r--r-- | action.c | 1 | ||||
-rw-r--r-- | runtime/wti.c | 2 | ||||
-rw-r--r-- | tools/omfile.c | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -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)); |