From 9afc36152a1ce428243a3ace608d0508716a2efb Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 8 Jun 2010 15:02:20 +0000 Subject: 2010-06-09 Tatsuhiro Tsujikawa Made protected member variables of Command private. Added accessor funcs. --- src/HttpServerBodyCommand.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/HttpServerBodyCommand.cc') diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc index 5067a843..6c8c8e40 100644 --- a/src/HttpServerBodyCommand.cc +++ b/src/HttpServerBodyCommand.cc @@ -99,7 +99,7 @@ bool HttpServerBodyCommand::execute() std::string responseData = res.toXml(gzip); _httpServer->feedResponse(responseData, "text/xml"); Command* command = - new HttpServerResponseCommand(cuid, _httpServer, _e, _socket); + new HttpServerResponseCommand(getCuid(), _httpServer, _e, _socket); _e->addCommand(command); _e->setNoWait(true); return true; @@ -112,7 +112,7 @@ bool HttpServerBodyCommand::execute() } } else { if(_timeoutTimer.difference(global::wallclock) >= 30) { - logger->info("HTTP request body timeout."); + getLogger()->info("HTTP request body timeout."); return true; } else { _e->addCommand(this); @@ -120,9 +120,10 @@ bool HttpServerBodyCommand::execute() } } } catch(RecoverableException& e) { - if(logger->info()) { - logger->info("CUID#%s - Error occurred while reading HTTP request body", - e, util::itos(cuid).c_str()); + if(getLogger()->info()) { + getLogger()->info + ("CUID#%s - Error occurred while reading HTTP request body", + e, util::itos(getCuid()).c_str()); } return true; } -- cgit