diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 15:02:20 +0000 |
| commit | 9afc36152a1ce428243a3ace608d0508716a2efb (patch) | |
| tree | 2e144d04570a058f3e2716d7b98f16803392cdbe /src/HttpServerBodyCommand.cc | |
| parent | 7cd9b21937c42606354610c7ae85a0857b474cf5 (diff) | |
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variables of Command private. Added accessor
funcs.
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
| -rw-r--r-- | src/HttpServerBodyCommand.cc | 11 |
1 files changed, 6 insertions, 5 deletions
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; } |
