Navigation


Changeset 761:99625152176b in freeDiameter


Ignore:
Timestamp:
Oct 7, 2011, 3:55:48 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Remove message logging if the level is NONE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/msg_log.c

    r740 r761  
    130130        CHECK_POSIX_DO( pthread_mutex_unlock(&ml_conf.lock), );
    131131       
     132        /* Do not log if the level is not at least INFO */
     133        if ((meth == FD_MSG_LOGTO_DEBUGONLY) && (fd_g_debug_lvl < INFO)) {
     134                return;
     135        }
     136       
    132137        /* Get current time */
    133138        CHECK_SYS_DO( clock_gettime(CLOCK_REALTIME, &ts), /* continue */);
Note: See TracChangeset for help on using the changeset viewer.