From 17e5e1be550179cd23d177315b00254ca26f1582 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 15 May 2017 23:54:25 +0200 Subject: [PATCH] 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 c27f4fa4..59e062af 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();