mirror of
https://github.com/wushuo894/ani-rss.git
synced 2026-03-15 01:20:23 +00:00
feat: 增加程序退出日志
This commit is contained in:
@@ -10,6 +10,7 @@ import ani.rss.util.other.ConfigUtil;
|
||||
import ani.rss.util.other.MenuUtil;
|
||||
import ani.rss.web.util.ServerUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.RuntimeUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.security.Security;
|
||||
@@ -38,6 +39,7 @@ public class ApplicationMain {
|
||||
log.error(message, e);
|
||||
System.exit(1);
|
||||
}
|
||||
RuntimeUtil.addShutdownHook(() -> log.info("程序退出..."));
|
||||
}
|
||||
|
||||
public static void loadProperty() {
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<nodeVersion>v25.2.1</nodeVersion>
|
||||
<pnpmVersion>10.4.1</pnpmVersion>
|
||||
<pnpmVersion>10.25.0</pnpmVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
|
||||
@@ -183,6 +183,7 @@ public class ServerUtil {
|
||||
}
|
||||
try {
|
||||
HTTP_SERVER.getRawServer().stop(0);
|
||||
log.info("http server stop");
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user