googleapis / googleapis/google-cloud-java

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

Đang mở
#12,392 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: logging priority: p3 type: feature request
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.