From 061b44457c077a19967b9b03ee94c009a707f265 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期一, 10 二月 2025 10:39:33 +0800 Subject: [PATCH] FeignLoggerLevelConfig 打印fergn的返回内容 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignLoggerLevelConfig.java | 14 ++++++++++++++ shasteel-biz/src/main/resources/application.yaml | 2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignLoggerLevelConfig.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignLoggerLevelConfig.java new file mode 100644 index 0000000..2ef0f2c --- /dev/null +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/config/FeignLoggerLevelConfig.java @@ -0,0 +1,14 @@ +package com.iailab.module.shasteel.config; + +import feign.Logger; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class FeignLoggerLevelConfig { + + @Bean + Logger.Level feignLoggerLevel() { + return Logger.Level.FULL; + } +} diff --git a/shasteel-biz/src/main/resources/application.yaml b/shasteel-biz/src/main/resources/application.yaml index a58b237..4927276 100644 --- a/shasteel-biz/src/main/resources/application.yaml +++ b/shasteel-biz/src/main/resources/application.yaml @@ -64,6 +64,8 @@ com.iailab.module.fast.dal.mysql: debug com.iailab.module.fast.dal.mysql.sensitiveword.SensitiveWordMapper: INFO # 配置 SensitiveWordMapper 的日志级别为 info com.iailab.module.fast.dal.mysql.sms.SmsChannelMapper: INFO # 配置 SmsChannelMapper 的日志级别为 info + # feign接口日志等级 + com.iailab.module.model.api.mcs: debug --- #################### 接口文档配置 #################### -- Gitblit v1.9.3