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/DHTPeerAnnounceCommand.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/DHTPeerAnnounceCommand.cc')
| -rw-r--r-- | src/DHTPeerAnnounceCommand.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DHTPeerAnnounceCommand.cc b/src/DHTPeerAnnounceCommand.cc index 96fd3bda..9ab386cf 100644 --- a/src/DHTPeerAnnounceCommand.cc +++ b/src/DHTPeerAnnounceCommand.cc @@ -39,12 +39,14 @@ #include "RecoverableException.h" #include "message.h" #include "Logger.h" +#include "LogFactory.h" namespace aria2 { DHTPeerAnnounceCommand::DHTPeerAnnounceCommand -(cuid_t cuid, DownloadEngine* e, time_t interval): - TimeBasedCommand(cuid, e, interval) {} +(cuid_t cuid, DownloadEngine* e, time_t interval) + : TimeBasedCommand(cuid, e, interval) +{} DHTPeerAnnounceCommand::~DHTPeerAnnounceCommand() {} @@ -61,7 +63,7 @@ void DHTPeerAnnounceCommand::process() try { peerAnnounceStorage_->handleTimeout(); } catch(RecoverableException& e) { - getLogger()->error(EX_EXCEPTION_CAUGHT, e); + A2_LOG_ERROR_EX(EX_EXCEPTION_CAUGHT, e); } } |
