From fb1a0a5e8bbfc11a28e452934a22a22a4a786741 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 5 Aug 2008 18:21:48 +0000 Subject: [PATCH] * mute /sslg and /wholist_section from logging when in debug mode since it floods the debugger window. --- webcit/context_loop.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 4fe4a2dda..d63d829c1 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -379,9 +379,15 @@ void context_loop(int sock) } /** Begin parsing the request. */ - - safestrncpy(buf, req->line, sizeof buf); - lprintf(5, "HTTP: %s\n", buf); +#ifdef TECH_PREVIEW + if ((strncmp(req->line+4, "/sslg", 5) != 0) && + (strncmp(req->line+4, "/wholist_section", 16) != 0)) { +#endif + safestrncpy(buf, req->line, sizeof buf); + lprintf(5, "HTTP: %s\n", buf); +#ifdef TECH_PREVIEW + } +#endif /** Check for bogus requests */ if (is_bogus(buf)) { -- 2.39.2