package com.feiyangedu.springcloud.petstore.common.rest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.codec.ErrorDecoder;

@Configuration
public class CustomFeignClientConfiguration {

	@Bean
	public ErrorDecoder feignErrorDecoder() {
		return new RestErrorDecoder();
	}

}

@@ -51,16 +51,75 @@
 .rest;%0A%0A
+import org.springframework.beans.factory.annotation.Value;%0A
 import o
@@ -162,16 +162,16 @@
 n.Bean;%0A
-
 import o
@@ -224,16 +224,37 @@
 ation;%0A%0A
+import feign.Logger;%0A
 import f
@@ -341,16 +341,87 @@
 tion %7B%0A%0A
+%09@Value(%22spring.feign.logger.level:BASIC%22)%0A%09Logger.Level loggerLevel;%0A%0A
 %09@Bean%0A%09
@@ -499,10 +499,77 @@
 ();%0A%09%7D%0A%0A
+%09@Bean%0A%09Logger.Level feignLoggerLevel() %7B%0A%09%09return loggerLevel;%0A%09%7D%0A
 %7D%0A

add log level in feign config