mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
less noisy. disable some dht announce and already connected messages
This commit is contained in:
parent
7182f1bad8
commit
cb7f080b75
@ -404,7 +404,7 @@ void node_impl::announce(std::string const& trackerName, sha1_hash const& info_h
|
||||
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
||||
TORRENT_LOG(node) << "announcing [ ih: " << info_hash << " p: " << listen_port << " ]" ;
|
||||
#endif
|
||||
printf("node_impl::announce '%s' host: %s:%d myself=%d\n", trackerName.c_str(), addr.to_string().c_str(), listen_port, myself);
|
||||
//printf("node_impl::announce '%s' host: %s:%d myself=%d\n", trackerName.c_str(), addr.to_string().c_str(), listen_port, myself);
|
||||
|
||||
// [MF] is_unspecified() is not always available. never mind.
|
||||
//if( !addr.is_unspecified() ) {
|
||||
|
@ -1354,7 +1354,7 @@ namespace libtorrent
|
||||
char msg[200];
|
||||
snprintf(msg, 200, "already connected to peer: %s %s"
|
||||
, print_endpoint(remote).c_str(), hex_pid);
|
||||
m_torrent->debug_log(msg);
|
||||
//m_torrent->debug_log(msg);
|
||||
|
||||
TORRENT_ASSERT(p->connection->associated_torrent().lock().get() == m_torrent);
|
||||
}
|
||||
|
@ -2194,7 +2194,7 @@ namespace libtorrent
|
||||
|
||||
BOOST_FOREACH(tcp::endpoint const& p, peers) {
|
||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
|
||||
debug_log("on_dht_announce_response %s:%d (local=%d)", p.address().to_string().c_str(), p.port(), p==localpeer);
|
||||
//debug_log("on_dht_announce_response %s:%d (local=%d)", p.address().to_string().c_str(), p.port(), p==localpeer);
|
||||
#endif
|
||||
if( p != localpeer ) {
|
||||
m_policy.add_peer(p, peer_id(0), peer_info::dht, 0);
|
||||
|
@ -911,7 +911,8 @@ void JSONRequest::parse(const Value& valRequest)
|
||||
if (valMethod.type() != str_type)
|
||||
throw JSONRPCError(RPC_INVALID_REQUEST, "Method must be a string");
|
||||
strMethod = valMethod.get_str();
|
||||
if (strMethod != "getwork" && strMethod != "getblocktemplate")
|
||||
if (strMethod != "getwork" && strMethod != "getblocktemplate" &&
|
||||
strMethod != "getlasthave")
|
||||
printf("ThreadRPCServer method=%s\n", strMethod.c_str());
|
||||
|
||||
// Parse params
|
||||
|
Loading…
Reference in New Issue
Block a user