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
This commit is contained in:
Bruno Dilly 2012-07-05 21:06:05 +00:00
parent 56eeac8fbd
commit c4d655f56b
1 changed files with 0 additions and 3 deletions

View File

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