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/FileAllocationCommand.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/FileAllocationCommand.cc')
| -rw-r--r-- | src/FileAllocationCommand.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc index 94c2dd87..7e615c95 100644 --- a/src/FileAllocationCommand.cc +++ b/src/FileAllocationCommand.cc @@ -68,10 +68,11 @@ bool FileAllocationCommand::executeInternal() } _fileAllocationEntry->allocateChunk(); if(_fileAllocationEntry->finished()) { - if(logger->debug()) { - logger->debug(MSG_ALLOCATION_COMPLETED, - _timer.difference(global::wallclock), - util::itos(_requestGroup->getTotalLength(), true).c_str()); + if(getLogger()->debug()) { + getLogger()->debug + (MSG_ALLOCATION_COMPLETED, + _timer.difference(global::wallclock), + util::itos(_requestGroup->getTotalLength(), true).c_str()); } _e->getFileAllocationMan()->dropPickedEntry(); @@ -94,9 +95,11 @@ bool FileAllocationCommand::executeInternal() bool FileAllocationCommand::handleException(Exception& e) { _e->getFileAllocationMan()->dropPickedEntry(); - logger->error(MSG_FILE_ALLOCATION_FAILURE, e, util::itos(cuid).c_str()); - logger->error(MSG_DOWNLOAD_NOT_COMPLETE, util::itos(cuid).c_str(), - _requestGroup->getDownloadContext()->getBasePath().c_str()); + getLogger()->error + (MSG_FILE_ALLOCATION_FAILURE, e, util::itos(getCuid()).c_str()); + getLogger()->error + (MSG_DOWNLOAD_NOT_COMPLETE, util::itos(getCuid()).c_str(), + _requestGroup->getDownloadContext()->getBasePath().c_str()); return true; } |
