From dda6a04d9aec4185205a97be0e36178f54c0be10 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Wed, 8 Dec 2021 16:09:57 +0800 Subject: [PATCH] feat: add log in startup of ContractProcess add log to show that the contract process is started as debug mode --- src/main/java/org/bdware/sc/ContractProcess.java | 1 + src/main/java/org/bdware/sc/engine/DesktopEngine.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bdware/sc/ContractProcess.java b/src/main/java/org/bdware/sc/ContractProcess.java index 005e72b..3546893 100644 --- a/src/main/java/org/bdware/sc/ContractProcess.java +++ b/src/main/java/org/bdware/sc/ContractProcess.java @@ -99,6 +99,7 @@ public class ContractProcess { } else if (arg.startsWith("-cmi")) { cmi = arg.substring(5); } else if (arg.startsWith("-debug")) { + LOGGER.info("log level: debug"); Configurator.setRootLevel(Level.DEBUG); } else if (arg.startsWith("-disablePID")) { pidInput = new ByteArrayInputStream("CP PID:-1".getBytes(StandardCharsets.UTF_8)); diff --git a/src/main/java/org/bdware/sc/engine/DesktopEngine.java b/src/main/java/org/bdware/sc/engine/DesktopEngine.java index bd09e2a..7446bfa 100644 --- a/src/main/java/org/bdware/sc/engine/DesktopEngine.java +++ b/src/main/java/org/bdware/sc/engine/DesktopEngine.java @@ -468,7 +468,6 @@ public class DesktopEngine extends JSEngine { // long start = System.currentTimeMillis(); for (AnnotationHook handler : fun.beforeExecutionAnnotations()) { - ret = handler.handle(input, this, ret); } // actually invoke!