diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 08:21:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 08:21:36 +0000 |
| commit | 580098eb4929a3bdbf424af18da361259ef2efe5 (patch) | |
| tree | c6ff77fa55fcbdcdd0ca21ec2105db14a8c050d3 /src/CheckIntegrityDispatcherCommand.cc | |
| parent | 3940da75624b194cdd5036f9fe330fcecc725964 (diff) | |
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Rewritten Logger interface. Logger now writes source file name and
line number in log file.
Diffstat (limited to 'src/CheckIntegrityDispatcherCommand.cc')
| -rw-r--r-- | src/CheckIntegrityDispatcherCommand.cc | 14 |
1 files changed, 7 insertions, 7 deletions
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<CheckIntegrityMan>& fileAllocMan, - DownloadEngine* e):SequentialDispatcherCommand<CheckIntegrityEntry> - (cuid, fileAllocMan, e) + DownloadEngine* e) + : SequentialDispatcherCommand<CheckIntegrityEntry>(cuid, fileAllocMan, e) { setStatusRealtime(); } @@ -54,11 +56,9 @@ Command* CheckIntegrityDispatcherCommand::createCommand (const SharedHandle<CheckIntegrityEntry>& 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); } |
