Changeset 10156


Ignore:
Timestamp:
Feb 10, 2010, 4:50:21 AM (12 years ago)
Author:
charles
Message:

(trunk) as promised, remove the announce logging code. now safe for general-purpose nightly build testing again.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r10154 r10156  
    44dnl         "0" for stable, supported releases
    55dnl these should be the only two lines you need to change
    6 m4_define([user_agent_prefix],[1.84y])
    7 m4_define([peer_id_prefix],[-TR184y-])
     6m4_define([user_agent_prefix],[1.83])
     7m4_define([peer_id_prefix],[-TR1830-])
    88
    99AC_INIT([transmission],
  • trunk/libtransmission/web.c

    r10154 r10156  
    320320    else
    321321    {
    322 static FILE * fp = NULL;
    323322        CURL * e = curl_easy_init( );
    324323        struct tr_web * web = session->web;
    325324        const int timeout = getTimeoutFromURL( task->url );
    326         //const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
     325        const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
    327326        const char * user_agent = TR_NAME "/" SHORT_VERSION_STRING;
    328 
    329 if( fp == NULL ) {
    330     fp = fopen( "/tmp/transmission-announce-log.txt", "a+" );
    331     fprintf( fp, "Starting new Transmission session...\n" );
    332 }
    333327
    334328        /* insert the resolved host into the URL s.t. curl's DNS won't block
     
    399393        curl_easy_setopt( e, CURLOPT_URL, task->resolved_url ? task->resolved_url : task->url );
    400394        curl_easy_setopt( e, CURLOPT_USERAGENT, user_agent );
    401         //curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
    402 curl_easy_setopt( e, CURLOPT_VERBOSE, TRUE );
    403 curl_easy_setopt( e, CURLOPT_STDERR, fp );
     395        curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
    404396        if( web->haveAddr )
    405397            curl_easy_setopt( e, CURLOPT_INTERFACE, tr_ntop_non_ts( &web->addr ) );
Note: See TracChangeset for help on using the changeset viewer.