]> git.mxchange.org Git - flightgear.git/commitdiff
RunUriHandler: add some INFO logging for the requests
authorTorsten Dreyer <torsten@ŧ3r.de>
Wed, 11 Mar 2015 21:28:23 +0000 (22:28 +0100)
committerTorsten Dreyer <torsten@ŧ3r.de>
Wed, 11 Mar 2015 21:28:23 +0000 (22:28 +0100)
src/Network/http/RunUriHandler.cxx

index 09252fdfd2297e49b7f78485083eb7381c9dfcde..1b3f7005c3bcd276a98980edd7cf7ba36cce97de 100644 (file)
@@ -47,6 +47,8 @@ bool RunUriHandler::handleRequest( const HTTPRequest & request, HTTPResponse & r
   cJSON * json = cJSON_Parse( request.Content.c_str() );
   JSON::toProp( json, args );
 
+  SG_LOG( SG_NETWORK, SG_INFO, "RunUriHandler("<< request.Content << "): command='" << command << "', arg='" << JSON::toJsonString(false,args,5) << "'");
+
   cJSON_Delete( json );
   if ( globals->get_commands()->execute(command.c_str(), args) ) {
     response.Content = "ok.";