Navigation


Changeset 1237:b255ba44f59c in freeDiameter for include


Ignore:
Timestamp:
Nov 2, 2013, 11:27:34 PM (10 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Add an option DEBUG_WITHOUT_META to strip some information from the log prefix

Location:
include/freeDiameter
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/CMakeLists.txt

    r1159 r1237  
    1616OPTION(ERRORS_ON_TODO "(development) Generate compilation errors on TODO items ?" OFF)
    1717
     18# In DEBUG mode, each log contains pid, calling function and file for easy debug. Set to ON to strip this information.
     19OPTION(DEBUG_WITHOUT_META "Strip calling location in logs?" OFF)
     20       
    1821# Create the absolute path for searching extensions
    1922SET(DEFAULT_EXTENSIONS_PATH ${CMAKE_INSTALL_PREFIX}/${INSTALL_EXTENSIONS_SUFFIX})
     
    3437OPTION(WORKAROUND_ACCEPT_INVALID_VSAI "Do not reject a CER/CEA with a Vendor-Specific-Application-Id AVP containing both Auth- and Acct- application AVPs?" OFF)
    3538
    36 MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT DISABLE_PEER_EXPIRY WORKAROUND_ACCEPT_INVALID_VSAI)
     39MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DEBUG_WITHOUT_META DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT DISABLE_PEER_EXPIRY WORKAROUND_ACCEPT_INVALID_VSAI)
    3740
    3841########################
  • include/freeDiameter/freeDiameter-host.h.in

    r1186 r1237  
    5454#cmakedefine DISABLE_SCTP
    5555#cmakedefine DEBUG_SCTP
     56#cmakedefine DEBUG_WITHOUT_META
    5657#cmakedefine SCTP_USE_MAPPED_ADDRESSES
    5758#cmakedefine SCTP_CONNECTX_4_ARGS
  • include/freeDiameter/libfdproto.h

    r1230 r1237  
    296296
    297297/* In DEBUG mode, we add meta-information along each trace. This makes multi-threading problems easier to debug. */
    298 #ifdef DEBUG
     298#if (defined(DEBUG) && !defined(DEBUG_WITHOUT_META))
    299299# define STD_TRACE_FMT_STRING "pid:%s in %s@%s:%d: "
    300300# define STD_TRACE_FMT_ARGS   , ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"), __PRETTY_FUNCTION__, __STRIPPED_FILE__, __LINE__
    301 #else /* DEBUG */
     301#else /* DEBUG && !DEBUG_WITHOUT_META */
    302302# define STD_TRACE_FMT_STRING ""
    303303# define STD_TRACE_FMT_ARGS
    304 #endif /* DEBUG */
     304#endif /* DEBUG && !DEBUG_WITHOUT_META */
    305305
    306306/*************************
Note: See TracChangeset for help on using the changeset viewer.