From db50df50f4711142dba8f7aa83751fccc52b1e0d Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Mon, 2 Sep 2013 13:17:56 +0800 Subject: [PATCH] Add log message for any rejected requests --- server/fastcgi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/fastcgi.c b/server/fastcgi.c index 29e85d3..2da4b12 100644 --- a/server/fastcgi.c +++ b/server/fastcgi.c @@ -265,6 +265,9 @@ void FCGI_RejectJSON(FCGIContext *context) */ void FCGI_RejectJSONEx(FCGIContext *context, StatusCodes status, const char *description) { + description = !description ? "" : description; + + Log(LOGINFO, "%s: Rejected query with: %d: %s", context->current_module, status, description); FCGI_BeginJSON(context, status); FCGI_JSONPair("description", description); FCGI_JSONLong("responsenumber", context->response_number); -- 2.20.1