From 668b4e73bac0cc86b12b4ba4e7bf26feff01b33d Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Mar 2020 13:10:15 +1000 Subject: Add a debug setting. --- src/sledjchisl/sledjchisl.c | 60 ++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 22 deletions(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 915459a..83a4774 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -467,6 +467,7 @@ int idleTimeOut = 24 * 60 * 60; int newbieTimeOut = 30; float loadAverageInc = 0.5; int simTimeOut = 45; +boolean DEBUG = TRUE; qhashtbl_t *mimeTypes; qlist_t *dbRequests; @@ -2141,7 +2142,12 @@ static void HTMLheader(qgrow_t *reply, char *title) " %s\n" " \n" " \n" - " \n" + , title); + + if (DEBUG) + reply->addstrf(reply, " \n"); + + reply->addstrf(reply, "