mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] MessageEventExcutionDebugger 在配置文件无法转换的情况下不再忽略'NumberFormatException'异常;
This commit is contained in:
parent
8edb728fe9
commit
a5fca68ef5
@ -26,13 +26,19 @@ public enum MessageEventExecutionDebugger {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
rotation = Integer.parseInt(properties.getProperty("debug.pm.rotation", "5"));
|
rotation = Integer.parseInt(properties.getProperty("debug.pm.rotation", "5"));
|
||||||
} catch(NumberFormatException ignored) {}
|
} catch(NumberFormatException e) {
|
||||||
|
log.warn("配置项 {} 值无效, 将使用默认值.({})", "debug.pm.rotation", rotation);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
number = Integer.parseInt(properties.getProperty("debug.pm.number", "50"));
|
number = Integer.parseInt(properties.getProperty("debug.pm.number", "50"));
|
||||||
} catch(NumberFormatException ignored) {}
|
} catch(NumberFormatException e) {
|
||||||
|
log.warn("配置项 {} 值无效, 将使用默认值.({})", "debug.pm.number", number);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
interval = Integer.parseInt(properties.getProperty("debug.pm.interval", "2500"));
|
interval = Integer.parseInt(properties.getProperty("debug.pm.interval", "2500"));
|
||||||
} catch(NumberFormatException ignored) {}
|
} catch(NumberFormatException e) {
|
||||||
|
log.warn("配置项 {} 值无效, 将使用默认值.({})", "debug.pm.interval", interval);
|
||||||
|
}
|
||||||
|
|
||||||
boolean interrupted = false;
|
boolean interrupted = false;
|
||||||
Thread currentThread = Thread.currentThread();
|
Thread currentThread = Thread.currentThread();
|
||||||
|
Loading…
Reference in New Issue
Block a user