improved logging

This commit is contained in:
Arvid Norberg
2010-08-18 17:14:40 +00:00
parent e7f4d6984f
commit a85f1f5c61
4 changed files with 44 additions and 26 deletions

View File

@@ -2557,12 +2557,18 @@ namespace aux {
--type_limit;
--dht_limit;
--tracker_limit;
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING
t->log_to_all_peers("AUTO MANAGER STARTING TORRENT");
#endif
t->set_announce_to_dht(dht_limit >= 0);
t->set_announce_to_trackers(tracker_limit >= 0);
t->set_allow_peers(true);
}
else
{
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING
t->log_to_all_peers("AUTO MANAGER PAUSING TORRENT");
#endif
t->set_allow_peers(false);
}
}