Add log message for any rejected requests
authorJeremy Tan <[email protected]>
Mon, 2 Sep 2013 05:17:56 +0000 (13:17 +0800)
committerJeremy Tan <[email protected]>
Mon, 2 Sep 2013 05:17:56 +0000 (13:17 +0800)
server/fastcgi.c

index 29e85d3..2da4b12 100644 (file)
@@ -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);

UCC git Repository :: git.ucc.asn.au