Commit 6b2531cc authored by Pekka Pessi's avatar Pekka Pessi

su: allow multiple calls to su_log_soft_set_level() to change log level

This time for real.
parent 027d1108
......@@ -240,7 +240,8 @@ 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 == 2)
return;
if (log->log_env && getenv(log->log_env)) {
......@@ -248,7 +249,7 @@ void su_log_soft_set_level(su_log_t *log, unsigned level)
}
else {
log->log_level = level;
log->log_init = 2;
log->log_init = 3;
if (explicitly_initialized == not_initialized)
explicitly_initialized = getenv("SHOW_DEBUG_LEVELS");
......
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