From 580098eb4929a3bdbf424af18da361259ef2efe5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 20 Nov 2010 08:21:36 +0000 Subject: 2010-11-20 Tatsuhiro Tsujikawa Rewritten Logger interface. Logger now writes source file name and line number in log file. --- src/CheckIntegrityDispatcherCommand.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/CheckIntegrityDispatcherCommand.cc') diff --git a/src/CheckIntegrityDispatcherCommand.cc b/src/CheckIntegrityDispatcherCommand.cc index 9c76e662..8cef2de4 100644 --- a/src/CheckIntegrityDispatcherCommand.cc +++ b/src/CheckIntegrityDispatcherCommand.cc @@ -37,15 +37,17 @@ #include "CheckIntegrityCommand.h" #include "message.h" #include "Logger.h" +#include "LogFactory.h" #include "util.h" +#include "fmt.h" namespace aria2 { CheckIntegrityDispatcherCommand::CheckIntegrityDispatcherCommand (cuid_t cuid, const SharedHandle& fileAllocMan, - DownloadEngine* e):SequentialDispatcherCommand - (cuid, fileAllocMan, e) + DownloadEngine* e) + : SequentialDispatcherCommand(cuid, fileAllocMan, e) { setStatusRealtime(); } @@ -54,11 +56,9 @@ Command* CheckIntegrityDispatcherCommand::createCommand (const SharedHandle& entry) { cuid_t newCUID = getDownloadEngine()->newCUID(); - if(getLogger()->info()) { - getLogger()->info("CUID#%s - Dispatching CheckIntegrityCommand CUID#%s.", - util::itos(getCuid()).c_str(), - util::itos(newCUID).c_str()); - } + A2_LOG_INFO(fmt("CUID#%s - Dispatching CheckIntegrityCommand CUID#%s.", + util::itos(getCuid()).c_str(), + util::itos(newCUID).c_str())); return new CheckIntegrityCommand (newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); } -- cgit