diff options
author | Bruno Dilly <bdilly@profusion.mobi> | 2012-07-05 21:06:05 +0000 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2012-07-05 21:06:05 +0000 |
commit | 58b8d8121ee4450be5c4918db74162a8ce692b41 (patch) | |
tree | aa3103159d1156e2156b6e96d915968c7892c81c /src/lib/eina_log.c | |
parent | f0f2cf1b2ded3836345e5dcd45ee23d975d46faa (diff) | |
download | eina-58b8d8121ee4450be5c4918db74162a8ce692b41.tar.gz |
Eina Log: don't remove a domain from env var list on the first register
Let say you pass a log level 4 for a domain on env var.
So if you, for some reason, register a domain, unregister it, and register
it again, the log level will be set as 1 instead of 4.
And you'll miss info and debug msgs...
Now only remove this information when cleaning pending list,
on eina_log_shutdown().
SVN revision: 73380
Diffstat (limited to 'src/lib/eina_log.c')
-rw-r--r-- | src/lib/eina_log.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/eina_log.c b/src/lib/eina_log.c index 5eb3eb3..2373823 100644 --- a/src/lib/eina_log.c +++ b/src/lib/eina_log.c @@ -1138,9 +1138,6 @@ finish_register: if ((namelen == pending->namelen) && (strcmp(pending->name, name) == 0)) { _log_domains[i].level = pending->level; - _pending_list = - eina_inlist_remove(_pending_list, EINA_INLIST_GET(pending)); - free(pending); break; } } |