diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-21 07:05:49 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-21 07:05:49 +0000 |
| commit | de8fef01f3119719441b36c758fd5bd924bcf607 (patch) | |
| tree | 61be92e32b982948d39421a4a58acfbb21e5e50c /src/ActivePeerConnectionCommand.cc | |
| parent | 322a0d1ad7e0ab0eaae6335baf91f5423b92c7f4 (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/ActivePeerConnectionCommand.cc')
| -rw-r--r-- | src/ActivePeerConnectionCommand.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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>& 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 |
