forked from enlightenment/edi
[log] filter out lots of efl debug
Blanket debug flags can be helpful but not when you have a lot of efl to dig through to get there!
This commit is contained in:
parent
7d5b7ba4b8
commit
b0771bdfc6
|
@ -17,8 +17,13 @@ static Evas_Object *_info_widget;
|
||||||
static Elm_Code *_elm_code;
|
static Elm_Code *_elm_code;
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_edi_logpanel_ignore(const char *fnc)
|
_edi_logpanel_ignore(Eina_Log_Level level, const char *fnc)
|
||||||
{
|
{
|
||||||
|
if (level <= EINA_LOG_LEVEL_DBG)
|
||||||
|
return !strncmp(fnc, "_eo_", 4) || !strncmp(fnc, "_evas_", 6) ||
|
||||||
|
!strncmp(fnc, "_ecore_", 7) || !strncmp(fnc, "_edje_", 6) ||
|
||||||
|
!strncmp(fnc, "_elm_", 5) || !strncmp(fnc, "_drm_", 5);
|
||||||
|
|
||||||
return !strncmp(fnc, "_evas_object_smart_need_recalculate_set", strlen(fnc));
|
return !strncmp(fnc, "_evas_object_smart_need_recalculate_set", strlen(fnc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +35,7 @@ _edi_logpanel_print_cb(const Eina_Log_Domain *domain, Eina_Log_Level level,
|
||||||
unsigned int printed, buffer_len = 512;
|
unsigned int printed, buffer_len = 512;
|
||||||
char buffer [buffer_len];
|
char buffer [buffer_len];
|
||||||
|
|
||||||
if (_edi_logpanel_ignore(fnc))
|
if (_edi_logpanel_ignore(level, fnc))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
printed = snprintf(buffer, buffer_len, "%s:%s:%s (%d): ",
|
printed = snprintf(buffer, buffer_len, "%s:%s:%s (%d): ",
|
||||||
|
|
Loading…
Reference in New Issue