fix:fix import default log implement error

pull/53/head
SkyeBeFreeman 3 years ago
parent d8106a2445
commit efc8a7e555

@ -84,14 +84,6 @@
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Spring Boot Dependencies -->
@ -120,6 +112,12 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

@ -18,8 +18,6 @@
package com.tencent.cloud.polaris.discovery;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
@ -30,8 +28,6 @@ import org.springframework.cloud.client.discovery.DiscoveryClient;
*/
public class PolarisDiscoveryClient implements DiscoveryClient {
private static final Logger log = LoggerFactory.getLogger(PolarisDiscoveryClient.class);
/**
* Polaris Discovery Client Description.
*/

@ -23,14 +23,6 @@ import feign.Feign;
import feign.InvocationHandlerFactory;
import feign.Target;
import feign.hystrix.FallbackFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.cloud.openfeign.FeignContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.util.StringUtils;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.ArrayList;
@ -38,6 +30,11 @@ import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.BeansException;
import org.springframework.cloud.openfeign.FeignContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.util.StringUtils;
/**
* Pluggable Feign builder.
@ -46,8 +43,6 @@ import java.util.stream.Collectors;
*/
public class PluggableFeign {
private static final Logger LOG = LoggerFactory.getLogger(PluggableFeign.class);
private PluggableFeign() {
}

@ -25,8 +25,6 @@ import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.Ordered;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
@ -42,8 +40,6 @@ import org.springframework.util.StringUtils;
*/
public class MetadataRestTemplateInterceptor implements ClientHttpRequestInterceptor, Ordered {
private static final Logger LOG = LoggerFactory.getLogger(MetadataRestTemplateInterceptor.class);
@Override
public int getOrder() {
return MetadataConstant.OrderConstant.INTERCEPTOR_ORDER;

@ -27,8 +27,6 @@ import com.tencent.cloud.metadata.context.MetadataContextHolder;
import feign.Feign;
import feign.MethodMetadata;
import feign.RequestTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Plugin used for adding the metadata in http headers from context when web client is Feign.
@ -37,8 +35,6 @@ import org.slf4j.LoggerFactory;
*/
public class MetadataFirstFeignPlugin implements PluggableFeignPlugin {
private static final Logger LOG = LoggerFactory.getLogger(MetadataFirstFeignPlugin.class);
@Override
public int getOrder() {
return MetadataConstant.OrderConstant.METADATA_FIRST_FEIGN_PLUGIN_ORDER;

@ -18,14 +18,11 @@
package com.tencent.cloud.polaris.gateway.core.scg.filter;
import com.tencent.cloud.metadata.constant.MetadataConstant;
import com.tencent.cloud.metadata.context.MetadataContextHolder;
import com.tencent.cloud.polaris.gateway.core.route.DynamicRouteService;
import java.net.URI;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.config.GatewayProperties;
import org.springframework.cloud.gateway.filter.FilterDefinition;
@ -45,8 +42,6 @@ import reactor.core.publisher.Mono;
*/
public class DynamicRouteScgFilter implements WebFilter, Ordered {
private static final Logger LOG = LoggerFactory.getLogger(DynamicRouteScgFilter.class);
@Autowired
private DynamicRouteService dynamicRouteService;

Loading…
Cancel
Save