Regression: --quiet disables --structured-logs again
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, go, google-cloud
- Lĩnh vực
- backend, observability
Hướng nghiên cứu
The issue points to the logger setup rework in #2106 and the earlier fix in #1750; start by comparing how --quiet and --structured-logs configure logging. Reproduce with the provided command and verify that errors, including multiline details, remain JSON with a severity field. A linked pull request (#2694) is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
When --structured-logs and --quiet are used together, error messages are written as plain text instead of JSON. This is the behavior reported in #1738 and fixed in v2.2.0 by #1750, so it is a regression.
Plain-text errors lose the severity field, and multi-line errors (for example, Google API errors with a Details: block) are split into separate entries by log collectors such as the GKE logging agent.
Bisecting the released images: v2.9.0 behaves correctly, and v2.10.0 through v2.26.0 (the latest as of this report) are affected. The change in behavior lines up with #2106, which reworked how the logger is set up.
Example code (or command)
cloud-sql-proxy --structured-logs --quiet --token=fake fake-proj:us-central1:fake-inst
Stacktrace
# v2.9.0 (expected)
{"severity":"ERROR","timestamp":"2026-10-07T23:07:14.054Z","message":"[fake-proj:us-central1:fake-inst] could not resolve instance version: ..."}
# v2.26.0 (actual)
2026/10/07 23:07:05 [fake-proj:us-central1:fake-inst] could not resolve instance version: failed to get instance: refresh error: ...
Details:
[
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
...
Steps to reproduce?
docker run --rm gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.26.0 --structured-logs --quiet --token=fake fake-proj:us-central1:fake-inst- Errors on stderr are plain text.
- The same command with
:2.9.0, or with--quietremoved, produces JSON errors.
Environment
- OS type and version: the official container images, run under Docker 29.4.0
- Cloud SQL Proxy version: 2.10.0 through 2.26.0
- Proxy invocation command: as above
This issue was written by AI (Claude Code).
- Ngôn ngữ chính
- Go
- Star
- 1.4k
- Fork
- 356
- Merge trung bình
- 14 giờ 48 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GoogleCloudPlatform/cloud-sql-proxy
-
tests: TestPostgresSocket failedĐang mởflakybot: flaky flakybot: issue priority: p2 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
GoogleCloudPlatform/cloud-sql-proxy#2680 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
GoogleCloudPlatform/cloud-sql-proxy#2672 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
GoogleCloudPlatform/cloud-sql-proxy#2671 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
GoogleCloudPlatform/cloud-sql-proxy#2670 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
GoogleCloudPlatform/cloud-sql-proxy#2669 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GoogleCloudPlatform/cloud-sql-proxy
Issue tương tự
-
product/backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TencentBlueKing/bk-nodemgr#3645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs(prompt): filer socket fragment hardcodes an issue-intent cap of 8 that Chore runs overrideĐang mởagent-butler-finding chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jordansmall/spindrift#5128 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày
-
License GOtome under Apache 2.0 instead of AGPL-3.0Có thể đã có người làm @praetorianer777 đã nhận hôm nay. Đang mởarea:workflow documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
praetorianer777/GoTome#212 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: pin Go version in Build and Unit Test workflows (>=1.26.6 floats to 1.27.2 and breaks golangci-lint)Có thể đã có người làm @leninmehedy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
hashgraph/solo-weaver#1255 ·
Maintainer thường phản hồi trong vòng 1 ngày