Ignore:
Timestamp:
Jan 3, 2009, 2:43:17 AM (12 years ago)
Author:
charles
Message:

(trunk libT) add "deep log" message to help track down freeze reported by the|Navigator. also, small + cheap speedup in tr_deepLoggingIsActive()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r7581 r7592  
    223223}
    224224
    225 int
     225tr_bool
    226226tr_deepLoggingIsActive( void )
    227227{
    228     return IsDebuggerPresent() || (tr_getLog()!=NULL);
     228    static tr_bool deepLoggingIsActive = -1;
     229
     230    if( deepLoggingIsActive == -1 )
     231        deepLoggingIsActive = IsDebuggerPresent() || (tr_getLog()!=NULL);
     232
     233    return deepLoggingIsActive;
    229234}
    230235
Note: See TracChangeset for help on using the changeset viewer.