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); + } } }