summaryrefslogtreecommitdiff
path: root/src/HttpServerBodyCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-21 07:05:49 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-21 07:05:49 +0000
commitde8fef01f3119719441b36c758fd5bd924bcf607 (patch)
tree61be92e32b982948d39421a4a58acfbb21e5e50c /src/HttpServerBodyCommand.cc
parent322a0d1ad7e0ab0eaae6335baf91f5423b92c7f4 (diff)
2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from translatable texts because it is used in log and debugging purpose.
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
-rw-r--r--src/HttpServerBodyCommand.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc
index 37fc3115..5c15a2b3 100644
--- a/src/HttpServerBodyCommand.cc
+++ b/src/HttpServerBodyCommand.cc
@@ -51,6 +51,7 @@
#include "XmlRpcResponse.h"
#include "DownloadContext.h"
#include "wallclock.h"
+#include "util.h"
namespace aria2 {
@@ -116,8 +117,10 @@ bool HttpServerBodyCommand::execute()
}
}
} catch(RecoverableException& e) {
- logger->info("CUID#%d - Error occurred while reading HTTP request body",
- e, cuid);
+ if(logger->info()) {
+ logger->info("CUID#%s - Error occurred while reading HTTP request body",
+ e, util::itos(cuid).c_str());
+ }
return true;
}