mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: add log to check resource release status #627
This commit is contained in:
parent
1a40447b23
commit
174696066d
@ -57,7 +57,9 @@ public class ConnectionFactory {
|
||||
// JVM 关闭时删除数据库文件
|
||||
try {
|
||||
FileUtils.forceDeleteOnExit(new File(H2_PATH));
|
||||
}catch (Exception ignore) {
|
||||
log.info("[PowerDatasource] delete worker db file[{}] on JVM exit successfully", H2_PATH);
|
||||
}catch (Throwable t) {
|
||||
log.warn("[PowerDatasource] delete file on JVM exit failed: {}", H2_PATH, t);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user