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/HttpSkipResponseCommand.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/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index b38ea7d0..96ca1bbe 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -41,10 +41,12 @@ #include "Request.h" #include "DownloadEngine.h" #include "Logger.h" +#include "LogFactory.h" #include "HttpRequest.h" #include "Segment.h" #include "util.h" #include "StringFormat.h" +#include "fmt.h" #include "DlAbortEx.h" #include "HttpHeader.h" #include "prefs.h" @@ -68,14 +70,14 @@ HttpSkipResponseCommand::HttpSkipResponseCommand const SharedHandle<HttpConnection>& httpConnection, const SharedHandle<HttpResponse>& httpResponse, DownloadEngine* e, - const SharedHandle<SocketCore>& s): - AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), - httpConnection_(httpConnection), - httpResponse_(httpResponse), - streamFilter_(new NullSinkStreamFilter()), - sinkFilterOnly_(true), - totalLength_(httpResponse_->getEntityLength()), - receivedBytes_(0) + const SharedHandle<SocketCore>& s) + : AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), + httpConnection_(httpConnection), + httpResponse_(httpResponse), + streamFilter_(new NullSinkStreamFilter()), + sinkFilterOnly_(true), + totalLength_(httpResponse_->getEntityLength()), + receivedBytes_(0) {} HttpSkipResponseCommand::~HttpSkipResponseCommand() {} @@ -133,9 +135,7 @@ bool HttpSkipResponseCommand::executeInternal() throw DL_RETRY_EX(EX_GOT_EOF); } } catch(RecoverableException& e) { - if(getLogger()->debug()) { - getLogger()->debug(EX_EXCEPTION_CAUGHT, e); - } + A2_LOG_DEBUG_EX(EX_EXCEPTION_CAUGHT, e) return processResponse(); } |
