From 1c953db972b183298de7429157e08613ee22af72 Mon Sep 17 00:00:00 2001 From: Yum-King Date: Mon, 20 Apr 2026 20:44:41 +0800 Subject: [PATCH] chore(lint): wrap gateway exit log line --- web/backend/api/gateway.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/backend/api/gateway.go b/web/backend/api/gateway.go index 90a31b2ff..c7d695824 100644 --- a/web/backend/api/gateway.go +++ b/web/backend/api/gateway.go @@ -764,7 +764,14 @@ func (h *Handler) startGatewayLocked(initialStatus string, existingPid int) (int if err := cmd.Wait(); err != nil { tail := gateway.logs.Tail(50) if len(tail) > 0 { - logger.ErrorC("gateway", fmt.Sprintf("Gateway process exited: %v\nLast gateway logs:\n%s", err, strings.Join(tail, "\n"))) + logger.ErrorC( + "gateway", + fmt.Sprintf( + "Gateway process exited: %v\nLast gateway logs:\n%s", + err, + strings.Join(tail, "\n"), + ), + ) } else { logger.ErrorC("gateway", fmt.Sprintf("Gateway process exited: %v", err)) }