Changeset 5a6446d in mod_gnutls for src


Ignore:
Timestamp:
Apr 8, 2005, 5:15:51 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
482f47f
Parents:
a8c1310
Message:

wrap the debug log in maintainer mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mod_gnutls.c

    ra8c1310 r5a6446d  
    2222#endif
    2323
     24#if MOD_GNUTLS_DEBUG
    2425static apr_file_t* debug_log_fp;
     26#endif
    2527
    2628static apr_status_t mod_gnutls_cleanup_pre_config(void *data)
     
    3032}
    3133
     34#if MOD_GNUTLS_DEBUG
    3235static void gnutls_debug_log_all( int level, const char* str)
    3336{
    3437    apr_file_printf(debug_log_fp, "<%d> %s\n", level, str);
    3538}
     39#endif
    3640
    3741static int mod_gnutls_hook_pre_config(apr_pool_t * pconf,
     
    4953                              apr_pool_cleanup_null);
    5054
     55#if MOD_GNUTLS_DEBUG
    5156    apr_file_open(&debug_log_fp, "/tmp/gnutls_debug",
    5257                  APR_APPEND|APR_WRITE|APR_CREATE, APR_OS_DEFAULT, pconf);
     
    5459    gnutls_global_set_log_level(9);
    5560    gnutls_global_set_log_function(gnutls_debug_log_all);
     61#endif
    5662
    5763    return OK;
Note: See TracChangeset for help on using the changeset viewer.