forked from enlightenment/edi
[logs] Ignore some common log lines to avoid clutter in panel.
This also removes some infinite loops as the redrawing of the log panel could trigger these lines too
This commit is contained in:
parent
833179ab49
commit
7d5b7ba4b8
|
@ -16,6 +16,12 @@
|
||||||
static Evas_Object *_info_widget;
|
static Evas_Object *_info_widget;
|
||||||
static Elm_Code *_elm_code;
|
static Elm_Code *_elm_code;
|
||||||
|
|
||||||
|
static Eina_Bool
|
||||||
|
_edi_logpanel_ignore(const char *fnc)
|
||||||
|
{
|
||||||
|
return !strncmp(fnc, "_evas_object_smart_need_recalculate_set", strlen(fnc));
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_edi_logpanel_print_cb(const Eina_Log_Domain *domain, Eina_Log_Level level,
|
_edi_logpanel_print_cb(const Eina_Log_Domain *domain, Eina_Log_Level level,
|
||||||
const char *file, const char *fnc, int line, const char *fmt,
|
const char *file, const char *fnc, int line, const char *fmt,
|
||||||
|
@ -24,6 +30,9 @@ _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))
|
||||||
|
return;
|
||||||
|
|
||||||
printed = snprintf(buffer, buffer_len, "%s:%s:%s (%d): ",
|
printed = snprintf(buffer, buffer_len, "%s:%s:%s (%d): ",
|
||||||
domain->domain_str, file, fnc, line);
|
domain->domain_str, file, fnc, line);
|
||||||
vsnprintf(buffer + printed, buffer_len - printed, fmt, args);
|
vsnprintf(buffer + printed, buffer_len - printed, fmt, args);
|
||||||
|
|
Loading…
Reference in New Issue