summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-23 11:19:32 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-23 11:19:32 +0200
commitfeddb7ea18769399ce53e3958d5c4a0b68e964bc (patch)
tree3be15c996065c29c3d9d148225abcb2080890ea1
parent50174408b02cd0e5553c5e92a73cc43fb1364db9 (diff)
downloadrsyslog-feddb7ea18769399ce53e3958d5c4a0b68e964bc.tar.gz
rsyslog-feddb7ea18769399ce53e3958d5c4a0b68e964bc.tar.bz2
rsyslog-feddb7ea18769399ce53e3958d5c4a0b68e964bc.zip
improving debugging info a bit
-rw-r--r--runtime/queue.c6
-rw-r--r--tests/testsuites/da-mainmsg-q.conf4
2 files changed, 7 insertions, 3 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index ea8567ea..4e37a0c2 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -1818,9 +1818,11 @@ rsRetVal qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */
/* call type-specific constructor */
CHKiRet(pThis->qConstruct(pThis)); /* this also sets bIsDA */
- dbgoprint((obj_t*) pThis, "type %d, enq-only %d, disk assisted %d, maxFileSz %lld, qsize %d, child %d starting\n",
+ dbgoprint((obj_t*) pThis, "type %d, enq-only %d, disk assisted %d, maxFileSz %lld, qsize %d, child %d, "
+ "full delay %d, light delay %d starting\n",
pThis->qType, pThis->bEnqOnly, pThis->bIsDA, pThis->iMaxFileSize,
- qqueueGetOverallQueueSize(pThis), pThis->pqParent == NULL ? 0 : 1);
+ qqueueGetOverallQueueSize(pThis), pThis->pqParent == NULL ? 0 : 1,
+ pThis->iFullDlyMrk, pThis->iLightDlyMrk);
if(pThis->qType == QUEUETYPE_DIRECT)
FINALIZE; /* with direct queues, we are already finished... */
diff --git a/tests/testsuites/da-mainmsg-q.conf b/tests/testsuites/da-mainmsg-q.conf
index 2d0e5b92..3465d13b 100644
--- a/tests/testsuites/da-mainmsg-q.conf
+++ b/tests/testsuites/da-mainmsg-q.conf
@@ -8,7 +8,9 @@ $ErrorMessagesToStderr off
# set spool locations and switch queue to disk assisted mode
$WorkDirectory test-spool
-$MainMsgQueueSize 100 # this *should* trigger moving on to DA mode...
+$MainMsgQueueSize 200 # this *should* trigger moving on to DA mode...
+# note: we must set QueueSize sufficiently high, so that 70% (light delay mark)
+# is high enough above HighWatermark!
$MainMsgQueueHighWatermark 80
$MainMsgQueueLowWatermark 40
$MainMsgQueueFilename mainq