Revision: 173
Author:
sma...@gmail.com
Date: Thu Jan 3 17:06:35 2013
Log: Debug tweaks on requests and responses to include more client
info.
http://code.google.com/p/omapd/source/detail?r=173
Modified:
/trunk/clienthandler.cpp
=======================================
--- /trunk/clienthandler.cpp Tue Nov 6 14:46:25 2012
+++ /trunk/clienthandler.cpp Thu Jan 3 17:06:35 2013
@@ -319,8 +319,8 @@
sendMapResponse(errorResp);
} else {
if
(_omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowClientOps))
- qDebug() << __PRETTY_FUNCTION__ << ":" << "Got request type:"
<< MapRequest::requestTypeString(_parser->requestType())
- << "and IF-MAP version:" <<
MapRequest::requestVersionString(_parser->requestVersion());
+ qDebug() << __PRETTY_FUNCTION__ << ":" << "Got request:" <<
MapRequest::requestTypeString(_parser->requestType())
+ << "from client:" << _authToken << "from address:" <<
this->peerAddress().toString();
bool sentError = false;
if (_parser->requestType() != MapRequest::NewSession) {
@@ -416,15 +416,15 @@
}
if
(_omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowClientOps))
- qDebug() << __PRETTY_FUNCTION__ << ":" << "Sending reply to
client:" << this->peerAddress().toString()
- << _authToken;
+ qDebug() << __PRETTY_FUNCTION__ << ":" << "Sending reply to
client:" << _authToken
+ << "at address:" << this->peerAddress().toString();
if
(_omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowHTTPHeaders))
qDebug() << __PRETTY_FUNCTION__ << ":" << "Sent reply headers
to client:" << this->peerAddress().toString()
<< endl << header.toString();
if
(_omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowXML))
- qDebug() << __PRETTY_FUNCTION__ << ":" << "Sent reply XML to
client:" << this->peerAddress().toString()
+ qDebug() << __PRETTY_FUNCTION__ << ":" << "Sent reply XML to
client:"
<< response << endl;
} else {
qDebug() << __PRETTY_FUNCTION__ << ":" << "Socket is not
connected! Not sending reply to client";