From 05b1c8101fdb253b4e58ee7cff218dd3713a63a4 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Fri, 20 Jun 2025 05:27:03 +0000 Subject: Turn off debug logging of MaxSizedBox errors by default. (#1228) --- packages/cli/src/ui/components/shared/MaxSizedBox.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/cli/src/ui/components/shared/MaxSizedBox.tsx') diff --git a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx index fe73c250..1b5b90aa 100644 --- a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx +++ b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx @@ -10,7 +10,11 @@ import stringWidth from 'string-width'; import { Colors } from '../../colors.js'; import { toCodePoints } from '../../utils/textUtils.js'; -const enableDebugLog = true; +let enableDebugLog = false; + +export function setMaxSizedBoxDebugging(value: boolean) { + enableDebugLog = value; +} function debugReportError(message: string, element: React.ReactNode) { if (!enableDebugLog) return; -- cgit v1.2.3