Changeset bd31661 for lib


Ignore:
Timestamp:
2011-12-02T10:32:54Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ca974d7
Parents:
191ac9d
Message:

Somewhat improve debug logging of HTTP/SOAP stuff.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/http_client.c

    r191ac9d rbd31661  
    279279        *end1 = 0;
    280280       
     281        if( getenv( "BITLBEE_DEBUG" ) )
     282                printf( "HTTP response headers:\n%s", req->reply_headers );
     283       
    281284        if( evil_server )
    282285                req->reply_body = end1 + 1;
     
    415418                req->ssl = NULL;
    416419               
     420                if( getenv( "BITLBEE_DEBUG" ) )
     421                        printf( "New headers for redirected HTTP request:\n%s", new_request );
     422       
    417423                if( new_proto == PROTO_HTTPS )
    418424                {
     
    456462                closesocket( req->fd );
    457463       
     464        if( getenv( "BITLBEE_DEBUG" ) && req )
     465                printf( "Finishing HTTP request with status: %s",
     466                        req->status_string ? req->status_string : "NULL" );
     467       
    458468        req->func( req );
    459469        http_free( req );
  • lib/xmltree.c

    r191ac9d rbd31661  
    323323}
    324324
    325 #ifdef DEBUG
    326325void xt_print( struct xt_node *node )
    327326{
     
    382381        printf( "</%s>\n", node->name );
    383382}
    384 #endif
    385383
    386384struct xt_node *xt_dup( struct xt_node *node )
Note: See TracChangeset for help on using the changeset viewer.