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/FileAllocationCommand.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/FileAllocationCommand.cc') 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; } -- cgit