From 3ef27a54ca9cc24d18940e0bfdae48917ad7dab5 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 2 Aug 2025 13:54:50 +0300 Subject: [PATCH 1/2] Rewrite startup command to remove stderr obstruction --- bin/functions/Home/log_wrapper.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/functions/Home/log_wrapper.bat b/bin/functions/Home/log_wrapper.bat index 7054ebe..bc4992c 100644 --- a/bin/functions/Home/log_wrapper.bat +++ b/bin/functions/Home/log_wrapper.bat @@ -11,9 +11,9 @@ if "%1"=="ssl" ( set NODE_CMD=node server.js ) -REM Start the Node.js server and log the output using PowerShell Tee-Object, suppressing specific warnings +REM Start the Node.js server and log the output using PowerShell Tee-Object echo Starting Node.js server with command: %NODE_CMD% -powershell -Command "& {%NODE_CMD% 2>&1 | Where-Object {$_ -notmatch 'Security has been overridden'} | Tee-Object -FilePath '%logs_st_console_path%'}" +cmd /c "%NODE_CMD%" 2>&1 | powershell -Command "$input | Tee-Object -FilePath '%logs_st_console_path%'" echo Node.js server started. pause From 9cac3a78bc17f23fb62773d0c6cdd965d00e6367 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 2 Aug 2025 14:06:23 +0300 Subject: [PATCH 2/2] Fix double pause --- bin/functions/Home/log_wrapper.bat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/functions/Home/log_wrapper.bat b/bin/functions/Home/log_wrapper.bat index bc4992c..f314b53 100644 --- a/bin/functions/Home/log_wrapper.bat +++ b/bin/functions/Home/log_wrapper.bat @@ -14,8 +14,5 @@ if "%1"=="ssl" ( REM Start the Node.js server and log the output using PowerShell Tee-Object echo Starting Node.js server with command: %NODE_CMD% cmd /c "%NODE_CMD%" 2>&1 | powershell -Command "$input | Tee-Object -FilePath '%logs_st_console_path%'" -echo Node.js server started. -pause - -REM Pause to keep the window open +echo Node.js server stopped. pause