Changeset 10154


Ignore:
Timestamp:
Feb 10, 2010, 4:35:59 AM (13 years ago)
Author:
charles
Message:

(trunk) another test build that logs tracker announces to a file in /tmp, so you probably shouldn't use it unless I've asked you to. After hudson-t is done building a debug dmg of this, I'll commit r10155 to remove the logging code

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r10146 r10154  
    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.83])
    7 m4_define([peer_id_prefix],[-TR1830-])
     6m4_define([user_agent_prefix],[1.84y])
     7m4_define([peer_id_prefix],[-TR184y-])
    88
    99AC_INIT([transmission],
  • trunk/libtransmission/web.c

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