mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
feat: add log in startup of ContractProcess
add log to show that the contract process is started as debug mode
This commit is contained in:
parent
3d7a145ca2
commit
dda6a04d9a
@ -99,6 +99,7 @@ public class ContractProcess {
|
|||||||
} else if (arg.startsWith("-cmi")) {
|
} else if (arg.startsWith("-cmi")) {
|
||||||
cmi = arg.substring(5);
|
cmi = arg.substring(5);
|
||||||
} else if (arg.startsWith("-debug")) {
|
} else if (arg.startsWith("-debug")) {
|
||||||
|
LOGGER.info("log level: debug");
|
||||||
Configurator.setRootLevel(Level.DEBUG);
|
Configurator.setRootLevel(Level.DEBUG);
|
||||||
} else if (arg.startsWith("-disablePID")) {
|
} else if (arg.startsWith("-disablePID")) {
|
||||||
pidInput = new ByteArrayInputStream("CP PID:-1".getBytes(StandardCharsets.UTF_8));
|
pidInput = new ByteArrayInputStream("CP PID:-1".getBytes(StandardCharsets.UTF_8));
|
||||||
|
@ -468,7 +468,6 @@ public class DesktopEngine extends JSEngine {
|
|||||||
// long start = System.currentTimeMillis();
|
// long start = System.currentTimeMillis();
|
||||||
|
|
||||||
for (AnnotationHook handler : fun.beforeExecutionAnnotations()) {
|
for (AnnotationHook handler : fun.beforeExecutionAnnotations()) {
|
||||||
|
|
||||||
ret = handler.handle(input, this, ret);
|
ret = handler.handle(input, this, ret);
|
||||||
}
|
}
|
||||||
// actually invoke!
|
// actually invoke!
|
||||||
|
Loading…
Reference in New Issue
Block a user