chore: ethend.bat 启动写时间戳到日志

This commit is contained in:
2026-06-28 16:49:10 +08:00
parent 350cd105bf
commit f8d3900eaa
+4 -3
View File
@@ -83,10 +83,14 @@ exit /b 1
:: ========================================== :: ==========================================
:start :start
:: Ensure log directory
if not exist "%LOG_DIR%" mkdir "%LOG_DIR%"
echo. echo.
echo ========================================== echo ==========================================
echo Cyrene ethend echo Cyrene ethend
echo ========================================== echo ==========================================
echo %date% %time% ethend.bat started >> "%LOG_FILE%"
call :check_node call :check_node
for /f "tokens=*" %%i in ('!NODE_CMD! --version') do echo Node.js: %%i for /f "tokens=*" %%i in ('!NODE_CMD! --version') do echo Node.js: %%i
echo Port: %ETHEND_PORT% echo Port: %ETHEND_PORT%
@@ -144,9 +148,6 @@ if not exist "node_modules\" (
call npm install --silent call npm install --silent
) )
:: Ensure log directory
if not exist "%LOG_DIR%" mkdir "%LOG_DIR%"
echo. echo.
echo [INFO] Starting ethend on port %ETHEND_PORT% echo [INFO] Starting ethend on port %ETHEND_PORT%
echo Web UI: http://localhost:%ETHEND_PORT% echo Web UI: http://localhost:%ETHEND_PORT%