(trunk libT) #3931 "'Announce is Queued' but torrent doesn't announce itself to trackers" -- add more debugging information for the next announce interval when an announce error is encountered, as requested by Sardok in comment:70 of #3931

This commit is contained in:
Jordan Lee 2011-04-07 19:54:30 +00:00
parent 03666d2365
commit 4a5415e84c
1 changed files with 3 additions and 0 deletions

View File

@ -965,6 +965,7 @@ on_announce_error( tr_tier * tier, const char * err, tr_announce_event e )
/* schedule a reannounce */
interval = getRetryInterval( tier->currentTracker );
dbgmsg( tier, "Retrying announce in %d seconds.", interval );
tr_torinf( tier->tor, "Retrying scrape in %d seconds.", interval );
tier_announce_event_push( tier, e, tr_time( ) + interval );
}
@ -1184,6 +1185,7 @@ on_scrape_error( tr_tier * tier, const char * errmsg )
/* schedule a rescrape */
interval = getRetryInterval( tier->currentTracker );
dbgmsg( tier, "Retrying scrape in %d seconds.", interval );
tr_torinf( tier->tor, "Retrying scrape in %d seconds.", interval );
tier->lastScrapeSucceeded = false;
tier->scrapeAt = get_next_scrape_time( interval );
}
@ -1447,6 +1449,7 @@ announceMore( tr_announcer * announcer )
n = MIN( tr_ptrArraySize( &announceMe ), announcer->slotsAvailable );
for( i=0; i<n; ++i ) {
tr_tier * tier = tr_ptrArrayNth( &announceMe, i );
tr_tordbg( tier->tor, "%s", "Announcing to tracker" );
dbgmsg( tier, "announcing tier %d of %d", i, n );
tierAnnounce( announcer, tier );
}