ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=b0771bdfc634fb8835e27955ce41e9e92e612f8d

commit b0771bdfc634fb8835e27955ce41e9e92e612f8d
Author: Andy Williams <a...@andywilliams.me>
Date:   Sat Oct 10 12:45:56 2015 -0700

    [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!
---
 src/bin/edi_logpanel.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/bin/edi_logpanel.c b/src/bin/edi_logpanel.c
index de1091d..caf0207 100644
--- a/src/bin/edi_logpanel.c
+++ b/src/bin/edi_logpanel.c
@@ -17,8 +17,13 @@ static Evas_Object *_info_widget;
 static Elm_Code *_elm_code;
 
 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));
 }
 
@@ -30,7 +35,7 @@ _edi_logpanel_print_cb(const Eina_Log_Domain *domain, 
Eina_Log_Level level,
    unsigned int printed, buffer_len = 512;
    char buffer [buffer_len];
 
-   if (_edi_logpanel_ignore(fnc))
+   if (_edi_logpanel_ignore(level, fnc))
      return;
 
    printed = snprintf(buffer, buffer_len, "%s:%s:%s (%d): ",

-- 


Reply via email to