git.ucc.asn.au
/
matches
/
MCTX3420.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a39a89
)
Add log message for any rejected requests
author
Jeremy Tan
<
[email protected]
>
Mon, 2 Sep 2013 05:17:56 +0000
(13:17 +0800)
committer
Jeremy Tan
<
[email protected]
>
Mon, 2 Sep 2013 05:17:56 +0000
(13:17 +0800)
server/fastcgi.c
patch
|
blob
|
history
diff --git
a/server/fastcgi.c
b/server/fastcgi.c
index
29e85d3
..
2da4b12
100644
(file)
--- 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);
UCC
git Repository :: git.ucc.asn.au