记得上下班打卡 | git大法好,push需谨慎

Commit 59f99073 authored by wangyifan's avatar wangyifan

取消响应头添加自定义参数日志

parent 1fb32bc3
...@@ -23,7 +23,7 @@ public class GlobalLogTrackInterceptor extends HandlerInterceptorAdapter { ...@@ -23,7 +23,7 @@ public class GlobalLogTrackInterceptor extends HandlerInterceptorAdapter {
// 从环境变量获取POD_NAME并添加到响应头 // 从环境变量获取POD_NAME并添加到响应头
String podName = System.getenv(POD_NAME_ENV); String podName = System.getenv(POD_NAME_ENV);
if (podName != null && !podName.isEmpty()) { if (podName != null && !podName.isEmpty()) {
log.info("[preHandle] podName: {}", podName); // log.info("[preHandle] podName: {}", podName);
response.setHeader(X_SERVER_HEADER, podName); response.setHeader(X_SERVER_HEADER, podName);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment