From 3b6277b9e24194c06fe54b0bb9c37df3ad8f3bf2 Mon Sep 17 00:00:00 2001 From: Alexander Kobel Date: Tue, 14 Apr 2020 19:36:58 +0200 Subject: [PATCH] Hide "No render frame received" without --debug-rendering --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index f4a5320eb..1828c03c4 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -649,7 +649,7 @@ draw_resizing_text(OSWindow *w) { static inline bool no_render_frame_received_recently(OSWindow *w, monotonic_t now, monotonic_t max_wait) { bool ans = now - w->last_render_frame_received_at > max_wait; - if (ans) log_error("No render frame received in %.2f seconds, re-requesting at: %f", monotonic_t_to_s_double(max_wait), monotonic_t_to_s_double(now)); + if (ans && global_state.debug_rendering) log_error("No render frame received in %.2f seconds, re-requesting at: %f", monotonic_t_to_s_double(max_wait), monotonic_t_to_s_double(now)); return ans; }