termpyesc: only compute logging content if it's going to be printed

This commit is contained in:
Boris Faure 2017-05-15 23:54:25 +02:00
parent bd6c81ed39
commit 17e5e1be55
1 changed files with 1 additions and 0 deletions

View File

@ -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();