Changeset 10145


Ignore:
Timestamp:
Feb 9, 2010, 1:47:16 AM (12 years ago)
Author:
charles
Message:

pulling my hair out.... gaaaah

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r10142 r10145  
    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.83w])
    7 m4_define([peer_id_prefix],[-TR1832-])
     6m4_define([user_agent_prefix],[1.84z])
     7m4_define([peer_id_prefix],[-TR184z-])
    88
    99AC_INIT([transmission],
  • trunk/libtransmission/web.c

    r10098 r10145  
    318318    else
    319319    {
     320static FILE * fp = NULL;
    320321        CURL * e = curl_easy_init( );
    321322        struct tr_web * web = session->web;
    322323        const int timeout = getTimeoutFromURL( task->url );
    323         const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
     324        //const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL;
    324325        const char * user_agent = TR_NAME "/" SHORT_VERSION_STRING;
    325326        char * url = NULL;
     327
     328if( fp == NULL ) {
     329    fp = fopen( "/tmp/transmission-announce-log.txt", "a+" );
     330    fprintf( fp, "Starting new Transmission session...\n" );
     331}
    326332
    327333        /* insert the resolved host into the URL s.t. curl's DNS won't block
     
    392398        curl_easy_setopt( e, CURLOPT_URL, url ? url : task->url );
    393399        curl_easy_setopt( e, CURLOPT_USERAGENT, user_agent );
    394         curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
     400        //curl_easy_setopt( e, CURLOPT_VERBOSE, verbose );
     401curl_easy_setopt( e, CURLOPT_VERBOSE, TRUE );
     402curl_easy_setopt( e, CURLOPT_STDERR, fp );
    395403        if( web->haveAddr )
    396404            curl_easy_setopt( e, CURLOPT_INTERFACE, tr_ntop_non_ts( &web->addr ) );
Note: See TracChangeset for help on using the changeset viewer.