From: barbieri Date: Tue, 9 Feb 2010 01:47:52 +0000 (+0000) Subject: just try fnmatch (glob) if no specific level was set. X-Git-Tag: 2.0_alpha~70^2~654 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09b5f6860d6c1549e43fdb2864c5ec8cc44b5fcf;p=framework%2Fuifw%2Feina.git just try fnmatch (glob) if no specific level was set. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45997 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/eina_log.c b/src/lib/eina_log.c index be937cd..deb939d 100644 --- a/src/lib/eina_log.c +++ b/src/lib/eina_log.c @@ -904,14 +904,6 @@ eina_log_domain_register_unlocked(const char *name, const char *color) _log_domains_count++; finish_register: - EINA_INLIST_FOREACH(_glob_list, pending) - { - if (!fnmatch(pending->name, name, 0)) - { - _log_domains[i].level = pending->level; - break; - } - } EINA_INLIST_FOREACH(_pending_list, pending) { @@ -924,6 +916,18 @@ finish_register: } } + if (_log_domains[i].level == EINA_LOG_LEVEL_UNKNOWN) + { + EINA_INLIST_FOREACH(_glob_list, pending) + { + if (!fnmatch(pending->name, name, 0)) + { + _log_domains[i].level = pending->level; + break; + } + } + } + // Check if level is still UNKNOWN, set it to global if (_log_domains[i].level == EINA_LOG_LEVEL_UNKNOWN) _log_domains[i].level = _log_level;