Regression: --quiet disables --structured-logs again
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- docker, go, google-cloud
- 領域
- backend, observability
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Go
- スター
- 1.4k
- フォーク
- 356
- 平均マージ
- 14時間 48分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/cloud-sql-proxy のほかの issue
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
GoogleCloudPlatform/cloud-sql-proxy#2680 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
GoogleCloudPlatform/cloud-sql-proxy#2672 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GoogleCloudPlatform/cloud-sql-proxy#2671 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
GoogleCloudPlatform/cloud-sql-proxy#2670 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GoogleCloudPlatform/cloud-sql-proxy#2669 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
GoogleCloudPlatform/cloud-sql-proxy の issue をすべて見る
似ている issue
-
bug go
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
genkit-ai/genkit#6761 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
メンテナーはふだん 2 日以内に返信
-
ready
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
kubeflow/pipelines#14784 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
trust: update-propagation-directive requires developer mode while add and remove do not対応中かも @bhuvan-somisetty が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信