Commit 242357bd authored by Pekka Pessi's avatar Pekka Pessi
Browse files

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

darcs-hash:20080507145952-db55f-b963923abccc019e7c8bd88f7062cfa64d9e7900.gz
parent 7dd19d09
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment