From 08fac8dd7817c54a8032e724cbb287844e79f776 Mon Sep 17 00:00:00 2001 From: Rugved Somwanshi Date: Wed, 30 Jul 2025 20:14:38 -0400 Subject: [PATCH] Remove log --- src/subcommands/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/subcommands/server.ts b/src/subcommands/server.ts index 721148f..17a26de 100644 --- a/src/subcommands/server.ts +++ b/src/subcommands/server.ts @@ -42,7 +42,9 @@ async function waitForCtlFileClear( ) { for (let i = 0; i < maxAttempts; i++) { await new Promise(resolve => setTimeout(resolve, checkIntervalMs)); - const isEmpty = (await readFile(serverCtlPath, "utf-8")).length === 0; + const content = await readFile(serverCtlPath, "utf-8"); + const isEmpty = content.length === 0; + if (isEmpty) { logger.debug(`Attempt ${i + 1}: File has been cleared`); return true;