diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 850f18ae4b..bf08cb30bb 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Fri May 9 13:45:02 EDT 2008 +Fri May 9 13:46:29 EDT 2008 diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_log.c b/libs/sofia-sip/libsofia-sip-ua/su/su_log.c index 372f91db0d..0b874237e6 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_log.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_log.c @@ -240,11 +240,13 @@ void su_log_soft_set_level(su_log_t *log, unsigned level) { if (log == NULL) log = su_log_default; - if (log->log_init > 1) + if (log->log_init == 1) return; + if (log->log_env && getenv(log->log_env)) { su_log_init(log); - } else { + } + else { log->log_level = level; log->log_init = 2;