googleapis / googleapis/google-cloud-java
[sdk-platform-java] Logging: capture and re-throw more clear error when sfl4j not in classpath but logging enabled.
未关闭
api: logging
priority: p3
type: feature request
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
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.
贡献指南
评估
这个 Issue 还没有评估数据。