Regression: --quiet disables --structured-logs again
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, go, google-cloud
- Área
- backend, observability
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 1.4k
- Forks
- 356
- Merge medio
- 10 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GoogleCloudPlatform/cloud-sql-proxy
-
tests: TestPostgresSocket failedAbiertoflakybot: flaky flakybot: issue priority: p2 type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
GoogleCloudPlatform/cloud-sql-proxy#2680 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
GoogleCloudPlatform/cloud-sql-proxy#2672 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
GoogleCloudPlatform/cloud-sql-proxy#2671 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
GoogleCloudPlatform/cloud-sql-proxy#2670 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
GoogleCloudPlatform/cloud-sql-proxy#2669 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de GoogleCloudPlatform/cloud-sql-proxy
Issues similares
-
darwin zsh
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
carapace-sh/carapace-bin#3846 ·
Los mantenedores suelen responder en 1 día
-
appplication - is a typo?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
golang-app/ecommerce#179 ·
Los mantenedores suelen responder en 1 día
-
Simulator process crashes (nil pointer panic) when the dataset returns an errorPosiblemente ocupada @EugeneVon la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
llm-d/llm-d-inference-sim#772 ·
Los mantenedores suelen responder en 1 día
-
refactor: decode numchildren with a lenient int type instead of a hand-written xProp.UnmarshalXMLAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
crazy-goat/xdbg#125 ·
Los mantenedores suelen responder en 1 día
-
150 points ci complexity:medium drips-wave help wanted medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
sorotrail/SoroBeacon#449 ·
Los mantenedores suelen responder en 1 día