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/HttpRequestCommand.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/HttpRequestCommand.cc') diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc index 54bfb91c..8d9919dd 100644 --- a/src/HttpRequestCommand.cc +++ b/src/HttpRequestCommand.cc @@ -56,6 +56,8 @@ #include "PieceStorage.h" #include "DefaultBtProgressInfoFile.h" #include "Logger.h" +#include "LogFactory.h" +#include "fmt.h" namespace aria2 { @@ -67,8 +69,8 @@ HttpRequestCommand::HttpRequestCommand const HttpConnectionHandle& httpConnection, DownloadEngine* e, const SocketHandle& s) - :AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), - httpConnection_(httpConnection) + : AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), + httpConnection_(httpConnection) { setTimeout(getOption()->getAsInt(PREF_CONNECT_TIMEOUT)); disableReadCheckSocket(); @@ -150,10 +152,8 @@ bool HttpRequestCommand::executeInternal() { getRequest()->getProtocol() == Request::PROTO_HTTPS)) { if(getFileEntry()->getPath().empty() && getRequest()->getFile().empty()) { - if(getLogger()->debug()) { - getLogger()->debug("conditional-get is disabled because file name" - "is not available."); - } + A2_LOG_DEBUG("Conditional-Get is disabled because file name" + " is not available."); } else { if(getFileEntry()->getPath().empty()) { getFileEntry()->setPath -- cgit