From a07e9f2a339276eca4fd5c5425474b6aad8bfae4 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 22 Jul 2024 10:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/nas/NasApplication.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/nas/NasApplication.java b/src/main/java/com/yutou/nas/NasApplication.java index 3e8bdb0..685a909 100644 --- a/src/main/java/com/yutou/nas/NasApplication.java +++ b/src/main/java/com/yutou/nas/NasApplication.java @@ -1,6 +1,7 @@ package com.yutou.nas; import com.yutou.nas.Datas.AppData; +import com.yutou.nas.okhttp.HttpLoggingInterceptor; import com.yutou.nas.utils.DmhyRssDownloadManager; import com.yutou.nas.utils.ConfigTools; import com.yutou.nas.utils.QQBotManager; @@ -12,13 +13,16 @@ import org.springframework.context.annotation.Import; @Import(DmhyRssDownloadManager.class) @SpringBootApplication public class NasApplication { - public static final String version = "1.4.2"; + public static final String version = "1.4.3"; public static void main(String[] args) { SpringApplication.run(NasApplication.class, args); AppData.defaultMusicPath = (String) ConfigTools.load(ConfigTools.CONFIG, "musicDir"); RedisTools.initRedisPoolSub(); - QQBotManager.getInstance().sendMessage("NasManager已上线:"+version); + QQBotManager.getInstance().sendMessage("NasManager已上线:" + version); + if (ConfigTools.load(ConfigTools.CONFIG, "okhttp.log", boolean.class)) { + HttpLoggingInterceptor.setLog(true); + } } }