【发布时间】:2020-09-02 12:12:25
【问题描述】:
我正在开发 spring boot 微服务应用程序。(java 8,Spring boot,slf4j 用于日志记录) 使用 Fire Store 作为数据库并部署在 Google Cloud 中。
try{
some code //service call and will hit db
} catch (InterruptedException e) {
throw new MyException("Some error occurred " e);
} catch (ExecutionException e) {
throw new MyException("Error occurred " e);
}catch (Exception e) {
LOGGER.error("Error occurred " + e);
}
在抛出异常时是否有可能显示敏感信息。 我读过一些地方,对于致命错误,不应过滤错误
谢谢你
【问题讨论】:
标签: spring-boot google-cloud-platform google-cloud-firestore java-8