新增了日志控制
This commit is contained in:
parent
af963f0af8
commit
a07e9f2a33
@ -1,6 +1,7 @@
|
|||||||
package com.yutou.nas;
|
package com.yutou.nas;
|
||||||
|
|
||||||
import com.yutou.nas.Datas.AppData;
|
import com.yutou.nas.Datas.AppData;
|
||||||
|
import com.yutou.nas.okhttp.HttpLoggingInterceptor;
|
||||||
import com.yutou.nas.utils.DmhyRssDownloadManager;
|
import com.yutou.nas.utils.DmhyRssDownloadManager;
|
||||||
import com.yutou.nas.utils.ConfigTools;
|
import com.yutou.nas.utils.ConfigTools;
|
||||||
import com.yutou.nas.utils.QQBotManager;
|
import com.yutou.nas.utils.QQBotManager;
|
||||||
@ -12,13 +13,16 @@ import org.springframework.context.annotation.Import;
|
|||||||
@Import(DmhyRssDownloadManager.class)
|
@Import(DmhyRssDownloadManager.class)
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class NasApplication {
|
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) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(NasApplication.class, args);
|
SpringApplication.run(NasApplication.class, args);
|
||||||
AppData.defaultMusicPath = (String) ConfigTools.load(ConfigTools.CONFIG, "musicDir");
|
AppData.defaultMusicPath = (String) ConfigTools.load(ConfigTools.CONFIG, "musicDir");
|
||||||
RedisTools.initRedisPoolSub();
|
RedisTools.initRedisPoolSub();
|
||||||
QQBotManager.getInstance().sendMessage("NasManager已上线:" + version);
|
QQBotManager.getInstance().sendMessage("NasManager已上线:" + version);
|
||||||
|
if (ConfigTools.load(ConfigTools.CONFIG, "okhttp.log", boolean.class)) {
|
||||||
|
HttpLoggingInterceptor.setLog(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user