Wed May 7 10:59:52 EDT 2008 Pekka Pessi <first.last@nokia.com>

* su_log.c: allow multiple calls su_log_soft_set_level() to change logging level



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8337 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-09 17:46:43 +00:00
parent f4ef1c7847
commit 439ad8460e
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
Fri May 9 13:45:02 EDT 2008
Fri May 9 13:46:29 EDT 2008

View File

@ -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;