googleapis / googleapis/google-cloud-java

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

Aperta
#12,392 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
api: logging priority: p3 type: feature request
Lingua principale
Java
Stelle
2.1k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
154

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.