From 4f795dc6cb7da32b90210469d6836b679b95837a Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Tue, 17 Feb 2026 19:16:39 +0900 Subject: [PATCH] fix unguarded debug prints --- hub/hub.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hub/hub.go b/hub/hub.go index db1d4ef..f8a171f 100644 --- a/hub/hub.go +++ b/hub/hub.go @@ -147,8 +147,10 @@ func (h *Hub) SendDrawPrompt(ctx context.Context) { // SendDraw sends a request to redraw the terminal display func (h *Hub) SendDraw(ctx context.Context, options *DrawOptions) { - pdebug.Printf("START Hub.SendDraw %v", options) - defer pdebug.Printf("END Hub.SendDraw %v", options) + if pdebug.Enabled { + pdebug.Printf("START Hub.SendDraw %v", options) + defer pdebug.Printf("END Hub.SendDraw %v", options) + } send(ctx, h.DrawCh(), NewPayload(options, isBatchCtx(ctx))) }