Changeset 10741


Ignore:
Timestamp:
Jun 10, 2010, 3:18:02 PM (12 years ago)
Author:
charles
Message:

(trunk libT) when TR_CURL_VERBOSE is set, also log the benc announce response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r10716 r10741  
    12301230    const int bencLoaded = !tr_bencLoad( response, responseLen, &benc, NULL );
    12311231
     1232    if( getenv( "TR_CURL_VERBOSE" ) != NULL )
     1233    {
     1234        char * str = tr_bencToStr( &benc, TR_FMT_JSON, NULL );
     1235        fprintf( stderr, "Announce response:\n< %s\n", str );
     1236        tr_free( str );
     1237    }
     1238
    12321239    dbgmsg( tier, "response len: %d, isBenc: %d", (int)responseLen, (int)bencLoaded );
    12331240    publishErrorClear( tier );
Note: See TracChangeset for help on using the changeset viewer.