billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=17e5e1be550179cd23d177315b00254ca26f1582

commit 17e5e1be550179cd23d177315b00254ca26f1582
Author: Boris Faure <bill...@gmail.com>
Date:   Mon May 15 23:54:25 2017 +0200

    termpyesc: only compute logging content if it's going to be printed
---
 src/bin/termptyesc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index c27f4fa..59e062a 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1172,6 +1172,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, 
Eina_Unicode *ce)
    cc++;
    return cc - c;
 unhandled:
+   if (eina_log_domain_level_check(_termpty_log_dom, EINA_LOG_LEVEL_WARN))
      {
         Eina_Strbuf *bf = eina_strbuf_new();
 

-- 


Reply via email to