fixed Exception information is not recorded in the log
### Motivation
Exception information is not recorded in the log
### Modifications
Optimize the exception log not to print
@@ -100,8 +100,7 @@ public class PrometheusMetricsServlet extends HttpServlet {
// this happens when metricsServletTimeoutMs expires
// java.lang.IllegalStateException: AsyncContext completed and/or Request lifecycle recycled
log.error("Failed to generate prometheus stats, "
- + "this is likely due to metricsServletTimeoutMs: {} ms elapsed",
- time, e + "");
+ + "this is likely due to metricsServletTimeoutMs: {} ms elapsed: {}", time, e + "");
}
}
}));
