Changeset 3362


Ignore:
Timestamp:
Oct 11, 2007, 3:12:48 AM (15 years ago)
Author:
charles
Message:

more debugging messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r3361 r3362  
    15071507        assert( atom != NULL );
    15081508
    1509         if( peer->doPurge )
     1509        if( peer->doPurge ) {
     1510            tordbg( t, "purging peer %s because it's got doPurge flagged", tr_peerIoAddrStr(&atom->addr,atom->port) );
    15101511            isWeak = TRUE;
    1511         else if( throughput >= 3 )
     1512        } else if( throughput >= 3 ) {
     1513            tordbg( t, "keeping peer %s because it's got a good throughput", tr_peerIoAddrStr(&atom->addr,atom->port) );
    15121514            isWeak = FALSE;
    1513         else if( peerIsSeed && clientIsSeed )
     1515        } else if( peerIsSeed && clientIsSeed ) {
     1516            tordbg( t, "%s peer is a seed and so are we", tr_peerIoAddrStr(&atom->addr,atom->port) );
    15141517            isWeak = t->tor->pexDisabled || (now-atom->time>=30);
    1515         else if( !atom->time || ( ( now - atom->time ) < LAISSEZ_FAIRE_PERIOD_SECS ) )
     1518        } else if( !atom->time || ( ( now - atom->time ) < LAISSEZ_FAIRE_PERIOD_SECS ) ) {
     1519            tordbg( t, "%s too new to purge", tr_peerIoAddrStr(&atom->addr,atom->port) );
    15161520            isWeak = FALSE;
    1517         else
     1521        } else {
    15181522            isWeak = ( now - peer->pieceDataActivityDate ) > 180;
     1523            tordbg( t, "%s peer %p", (isWeak?"purging":"keeping"), tr_peerIoAddrStr(&atom->addr,atom->port) );
     1524        }
    15191525
    15201526        if( isWeak )
Note: See TracChangeset for help on using the changeset viewer.