Ignore:
Timestamp:
2011-12-04T19:14:29Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
df98ee8
Parents:
bd31661
Message:

Debug output tweaks: Try to send everything to stderr, and add ifdef to
enable printing of all SSL traffic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    rbd31661 rca974d7  
    218218        {
    219219                if( ( s = strstr( headers, "\r\n\r\n" ) ) )
    220                         st = write( 1, headers, s - headers + 4 );
     220                        st = write( 2, headers, s - headers + 4 );
    221221                else
    222                         st = write( 1, headers, strlen( headers ) );
     222                        st = write( 2, headers, strlen( headers ) );
    223223        }
    224224       
     
    663663       
    664664        if( getenv( "BITLBEE_DEBUG" ) )
    665                 printf( "%p %s %d\n", bu, handle, bd->flags );
     665                fprintf( stderr, "%p %s %d\n", bu, handle, bd->flags );
    666666       
    667667        return XT_HANDLED;
     
    810810       
    811811        if( getenv( "BITLBEE_DEBUG" ) )
    812                 printf( "%s %s\n", id, name );
     812                fprintf( stderr, "%s %s\n", id, name );
    813813       
    814814        return XT_HANDLED;
     
    871871       
    872872        if( getenv( "BITLBEE_DEBUG" ) )
    873                 printf( "%s %s %s %s\n", id, type, handle, display_name );
     873                fprintf( stderr, "%s %s %s %s\n", id, type, handle, display_name );
    874874       
    875875        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.