update - 增加日志

This commit is contained in:
wangli 2024-02-19 14:44:47 +08:00
parent 49b6cb7b06
commit 89aac2fadb

View File

@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.HandlerInterceptor;
import javax.servlet.http.HttpServletRequest;
@ -50,12 +49,12 @@ public class RequestHeaderContextInterceptor implements HandlerInterceptor {
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
}
}
// feignApi 才需要检查版本
if (!request.getRequestURI().contains("/web/") && !request.getRequestURI().contains("checkDeath")
&& !StringUtils.hasText(request.getHeader(HEADER_HTTP_CLIENT))) {
log.info("request uri 2 : {}", request.getRequestURI());
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
}
// // feignApi 才需要检查版本
// if (!request.getRequestURI().contains("/web/") && !request.getRequestURI().contains("checkDeath")
// && !StringUtils.hasText(request.getHeader(HEADER_HTTP_CLIENT))) {
// log.info("request uri 2 : {}", request.getRequestURI());
// throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
// }
return true;
}