You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by co...@apache.org on 2026/04/27 18:09:44 UTC

(seatunnel) branch dev updated: [Fix][Core] Fix seatunnel.cmd crash before 10 AM due to %time% leadin… (#10822)

This is an automated email from the ASF dual-hosted git repository.

corgy-w pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new d8c97a66f9 [Fix][Core] Fix seatunnel.cmd crash before 10 AM due to %time% leadin… (#10822)
d8c97a66f9 is described below

commit d8c97a66f99cf74e3b4e194ca6da75adcd18f492
Author: cosmosni <ni...@cmss.chinamobile.com>
AuthorDate: Tue Apr 28 02:09:36 2026 +0800

    [Fix][Core] Fix seatunnel.cmd crash before 10 AM due to %time% leadin… (#10822)
---
 seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.cmd | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.cmd b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.cmd
index 2522e6be78..44c64c75e3 100644
--- a/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.cmd
+++ b/seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.cmd
@@ -86,7 +86,9 @@ if exist "%CONF_DIR%\log4j2_client.properties" (
             set datetime=%%A
             set ndate=!datetime:~0,4!!datetime:~4,2!!datetime:~6,2!
         )
-        set "JAVA_OPTS=!JAVA_OPTS! -Dseatunnel.logs.file_name=seatunnel-starter-client-!ndate!-!time:~0,2!!time:~3,2!!time:~6,2!!ntime:~0,6!"
+        set "timestamp=!time:~0,2!!time:~3,2!!time:~6,2!!ntime:~0,6!"
+        set "timestamp=!timestamp: =0!"
+        set "JAVA_OPTS=!JAVA_OPTS! -Dseatunnel.logs.file_name=seatunnel-starter-client-!ndate!-!timestamp!"
     ) else (
         set "JAVA_OPTS=!JAVA_OPTS! -Dseatunnel.logs.file_name=seatunnel-starter-client"
     )