summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 08:21:36 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 08:21:36 +0000
commit580098eb4929a3bdbf424af18da361259ef2efe5 (patch)
treec6ff77fa55fcbdcdd0ca21ec2105db14a8c050d3 /src/HttpRequestCommand.cc
parent3940da75624b194cdd5036f9fe330fcecc725964 (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/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc12
1 files changed, 6 insertions, 6 deletions
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