From 5aa778c40f706f3401cbe3affc789bb7f0957712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 14 Jul 2026 18:56:28 +0800 Subject: [PATCH] boxdd: Fix log format --- experimental/boxdd/cmd_run_windows.go | 2 +- experimental/boxdd/cmd_service_windows.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/experimental/boxdd/cmd_run_windows.go b/experimental/boxdd/cmd_run_windows.go index 52d1ce346..e3cb3c9ea 100644 --- a/experimental/boxdd/cmd_run_windows.go +++ b/experimental/boxdd/cmd_run_windows.go @@ -85,7 +85,7 @@ func (s *windowsService) Execute(arguments []string, requests <-chan svc.ChangeR if request.Cmd == svc.Stop || request.Cmd == svc.Shutdown { break } - serviceLogError(E.New("unexpected service command: ", request.Cmd)) + serviceLogError(E.New("unexpected service command: ", uint32(request.Cmd))) } statuses <- svc.Status{State: svc.StopPending} watchdog := time.AfterFunc(3*time.Second, func() { diff --git a/experimental/boxdd/cmd_service_windows.go b/experimental/boxdd/cmd_service_windows.go index e14a9986d..d8ff89448 100644 --- a/experimental/boxdd/cmd_service_windows.go +++ b/experimental/boxdd/cmd_service_windows.go @@ -271,7 +271,7 @@ func stopServiceAndWait(service *mgr.Service) error { } func waitServiceState(service *mgr.Service, state svc.State) error { - timeout := time.Now().Add(10 * time.Second) + timeout := time.Now().Add(30 * time.Second) var currentStatus svc.Status for time.Now().Before(timeout) { status, err := service.Query() @@ -291,8 +291,8 @@ func waitServiceState(service *mgr.Service, state svc.State) error { time.Sleep(500 * time.Millisecond) } return E.New( - "timeout waiting for service state ", state, - ", current state ", currentStatus.State, + "timeout waiting for service state ", uint32(state), + ", current state ", uint32(currentStatus.State), ", process ID ", currentStatus.ProcessId, ", Windows exit code ", currentStatus.Win32ExitCode, ", service exit code ", currentStatus.ServiceSpecificExitCode,