From de8fef01f3119719441b36c758fd5bd924bcf607 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 21 Mar 2010 07:05:49 +0000 Subject: 2010-03-21 Tatsuhiro Tsujikawa Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from translatable texts because it is used in log and debugging purpose. --- src/ActivePeerConnectionCommand.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ActivePeerConnectionCommand.cc') diff --git a/src/ActivePeerConnectionCommand.cc b/src/ActivePeerConnectionCommand.cc index 524172b1..9ee973f6 100644 --- a/src/ActivePeerConnectionCommand.cc +++ b/src/ActivePeerConnectionCommand.cc @@ -50,6 +50,7 @@ #include "DownloadContext.h" #include "bittorrent_helper.h" #include "wallclock.h" +#include "util.h" namespace aria2 { @@ -140,8 +141,10 @@ void ActivePeerConnectionCommand::connectToPeer(const SharedHandle& peer) command->setPeerStorage(_peerStorage); command->setPieceStorage(_pieceStorage); e->commands.push_back(command); - logger->info(MSG_CONNECTING_TO_PEER, - cuid, peer->ipaddr.c_str()); + if(logger->info()) { + logger->info(MSG_CONNECTING_TO_PEER, + util::itos(cuid).c_str(), peer->ipaddr.c_str()); + } } void ActivePeerConnectionCommand::setBtRuntime -- cgit