Navigation


Changeset 1295:a22d9e907d48 in freeDiameter for include


Ignore:
Timestamp:
Jun 19, 2015, 1:00:10 AM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Make the stripped output the default. Define DEBUG_WITH_META to get longer format.

Location:
include/freeDiameter
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/CMakeLists.txt

    r1289 r1295  
    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.
    19 OPTION(DEBUG_WITHOUT_META "Strip calling location in logs?" OFF)
     18# In DEBUG mode, each log can contain pid, calling function and file for easy debug. Set to ON to display this information.
     19OPTION(DEBUG_WITH_META "Show calling location in logs?" OFF)
    2020       
    2121# Create the absolute path for searching extensions
     
    3737OPTION(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)
    3838
    39 MARK_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)
     39MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO DEBUG_WITH_META DIAMID_IDNA_IGNORE DIAMID_IDNA_REJECT DISABLE_PEER_EXPIRY WORKAROUND_ACCEPT_INVALID_VSAI)
    4040
    4141########################
  • include/freeDiameter/freeDiameter-host.h.in

    r1237 r1295  
    5454#cmakedefine DISABLE_SCTP
    5555#cmakedefine DEBUG_SCTP
    56 #cmakedefine DEBUG_WITHOUT_META
     56#cmakedefine DEBUG_WITH_META
    5757#cmakedefine SCTP_USE_MAPPED_ADDRESSES
    5858#cmakedefine SCTP_CONNECTX_4_ARGS
  • include/freeDiameter/libfdproto.h

    r1281 r1295  
    298298
    299299/* In DEBUG mode, we add meta-information along each trace. This makes multi-threading problems easier to debug. */
    300 #if (defined(DEBUG) && !defined(DEBUG_WITHOUT_META))
     300#if (defined(DEBUG) && defined(DEBUG_WITH_META))
    301301# define STD_TRACE_FMT_STRING "pid:%s in %s@%s:%d: "
    302302# define STD_TRACE_FMT_ARGS   , ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"), __PRETTY_FUNCTION__, __STRIPPED_FILE__, __LINE__
    303 #else /* DEBUG && !DEBUG_WITHOUT_META */
     303#else /* DEBUG && DEBUG_WITH_META */
    304304# define STD_TRACE_FMT_STRING ""
    305305# define STD_TRACE_FMT_ARGS
    306 #endif /* DEBUG && !DEBUG_WITHOUT_META */
     306#endif /* DEBUG && DEBUG_WITH_META */
    307307
    308308/*************************
Note: See TracChangeset for help on using the changeset viewer.