googleapis / googleapis/google-cloud-java

[sdk-platform-java] Logging: capture and re-throw more clear error when sfl4j not in classpath but logging enabled.

Offen
#12,392 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api: logging priority: p3 type: feature request
Vorherrschende Sprache
Java
Sterne
2.1k
Forks
1.2k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
154

Beschreibung

context: https://github.com/googleapis/sdk-platform-java/pull/3403#discussion_r1964371858

For scenario where customer app does not have logging dependency (SLF4J), but turns on logging via env variable, logging would fail. Currently, this would throw ClassNotFoundException.

For better customer experience, we can capture this and re-throw with more clear error message to communicate to customer.

Note: if change, this applies to both Gax and Auth. Need code changes in both repos.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.