From 28546974158e7a35fb0d59179eff95b42afce2bc Mon Sep 17 00:00:00 2001 From: "ki.sagidullin" Date: Sat, 22 Aug 2026 10:15:30 +0500 Subject: [PATCH] =?UTF-8?q?chore(opencode):=20=D0=BD=D0=B5=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=20API-=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE?= =?UTF-8?q?=D0=B2/=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D0=BE=D0=B2,=20=D1=82?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BC=D0=B5=D1=82=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/opencode/client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/opencode/client.go b/internal/opencode/client.go index 0faaa3b..f90d9cc 100644 --- a/internal/opencode/client.go +++ b/internal/opencode/client.go @@ -64,9 +64,6 @@ func (c *Client) do(ctx context.Context, method, path, op string, body []byte) ( } if c.Debug { log.Printf("opencode api %s -> %s %s%s", op, method, c.BaseURL, path) - if len(body) > 0 { - log.Printf("opencode api %s request body: %s", op, truncateStr(string(body), 5000)) - } } resp, err := c.http.Do(req) if err != nil { @@ -79,12 +76,12 @@ func (c *Client) do(ctx context.Context, method, path, op string, body []byte) ( } if resp.StatusCode < 200 || resp.StatusCode > 299 { if c.Debug { - log.Printf("opencode api %s response: status %d: %s", op, resp.StatusCode, truncateStr(string(b), 1000)) + log.Printf("opencode api %s response: status %d", op, resp.StatusCode) } return nil, &ClientErr{Op: op, Err: fmt.Errorf("status %d: %s", resp.StatusCode, truncateStr(string(b), 300))} } if c.Debug { - log.Printf("opencode api %s response (%d bytes): %s", op, len(b), truncateStr(string(b), 5000)) + log.Printf("opencode api %s response (%d bytes)", op, len(b)) } return b, nil }