From ee346d8aec05bc79600f7d5280d88ab45d2bcab5 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 27 Apr 2011 17:36:16 +0200 Subject: minor: some better debug instrumentation --- plugins/imudp/imudp.c | 2 +- runtime/rsconf.c | 6 ++++-- tcpsrv.c | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 8a463320..4a3560aa 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -6,7 +6,7 @@ * * File begun on 2007-12-21 by RGerhards (extracted from syslogd.c) * - * Copyright 2007-2009 Rainer Gerhards and Adiscon GmbH. + * Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH. * * This file is part of rsyslog. * diff --git a/runtime/rsconf.c b/runtime/rsconf.c index b50b4fb6..2e2eaab6 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -280,10 +280,14 @@ dropPrivileges(rsconf_t *cnf) */ if(cnf->globals.gidDropPriv != 0) { doDropPrivGid(ourConf->globals.gidDropPriv); + DBGPRINTF("group privileges have been dropped to gid %u\n", (unsigned) + ourConf->globals.gidDropPriv); } if(cnf->globals.uidDropPriv != 0) { doDropPrivUid(ourConf->globals.uidDropPriv); + DBGPRINTF("user privileges have been dropped to uid %u\n", (unsigned) + ourConf->globals.uidDropPriv); } RETiRet; @@ -300,7 +304,6 @@ runInputModules(void) int bNeedsCancel; BEGINfunc - /* loop through all modules and activate them (brr...) */ pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN); while(pMod != NULL) { if(pMod->mod.im.bCanRun) { @@ -325,7 +328,6 @@ startInputModules(void) DEFiRet; modInfo_t *pMod; - /* loop through all modules and activate them (brr...) */ pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN); while(pMod != NULL) { iRet = pMod->mod.im.willRun(); diff --git a/tcpsrv.c b/tcpsrv.c index 39cba5d1..f1be1f87 100644 --- a/tcpsrv.c +++ b/tcpsrv.c @@ -898,6 +898,7 @@ tcpsrvConstructFinalize(tcpsrv_t *pThis) /* set up listeners */ CHKmalloc(pThis->ppLstn = calloc(pThis->iLstnMax, sizeof(netstrm_t*))); CHKmalloc(pThis->ppLstnPort = calloc(pThis->iLstnMax, sizeof(tcpLstnPortList_t*))); +dbgprintf("XXXX: open sockets (tcpsrv)\n"); iRet = pThis->OpenLstnSocks(pThis); finalize_it: -- cgit v1.2.3