boxdd: Fix log format

This commit is contained in:
世界
2026-07-14 18:56:28 +08:00
parent 2fd577502c
commit 5aa778c40f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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,