diff --git a/gradle.properties b/gradle.properties index f9896ea..a990ed9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.7.1.0 +VERSION = 0.7.1.1 CODENAME = fuzhou diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index b0888fc..107cd31 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,7 +4,7 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.7.1.0"; + public static final String VERSION = "0.7.1.1"; public static final String CODENAME = "fuzhou"; - public static final long COMPILE_TIMESTAMP = 1654235503515L; + public static final long COMPILE_TIMESTAMP = 1654430498871L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/MornyCoeur.java b/src/main/java/cc/sukazyo/cono/morny/MornyCoeur.java index ac5a6dd..d2cb07e 100644 --- a/src/main/java/cc/sukazyo/cono/morny/MornyCoeur.java +++ b/src/main/java/cc/sukazyo/cono/morny/MornyCoeur.java @@ -152,6 +152,7 @@ public class MornyCoeur { isRemoveCommandListWhenExit ); MornyDaemons.start(); + logger.info("start telegram events listening"); EventListeners.registerAllListeners(); INSTANCE.account.setUpdatesListener(OnUpdate::onNormalUpdate); if (isAutomaticResetCommandList) { @@ -187,7 +188,7 @@ public class MornyCoeur { * 为程序在虚拟机上添加退出钩子 */ private void configureSafeExit () { - Runtime.getRuntime().addShutdownHook(new Thread(this::exitCleanup, "Exit-Cleaning")); + Runtime.getRuntime().addShutdownHook(new Thread(this::exitCleanup, "exit-cleaning")); } /** diff --git a/src/main/java/cc/sukazyo/cono/morny/ServerMain.java b/src/main/java/cc/sukazyo/cono/morny/ServerMain.java index d7ec325..9f58547 100644 --- a/src/main/java/cc/sukazyo/cono/morny/ServerMain.java +++ b/src/main/java/cc/sukazyo/cono/morny/ServerMain.java @@ -21,6 +21,8 @@ public class ServerMain { public static final String PROP_TOKEN_KEY = "TELEGRAM_BOT_API_TOKEN"; public static final String PROP_TOKEN_MORNY_KEY = "MORNY_TG_TOKEN"; + private static final String THREAD_MORNY_INIT = "morny-init"; + /** * 程序入口,也是参数处理器
*
@@ -233,6 +235,7 @@ public class ServerMain { logger.info("Parameter required has no value:\n --token."); return; } + Thread.currentThread().setName(THREAD_MORNY_INIT); MornyCoeur.main( api, api4File, key, username,