Skip to content

Commit f700a01

Browse files
committed
fix: update debug logging messages in ExpressionParser for clarity
1 parent 57919aa commit f700a01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/java/mindustrytool/workflow/expressions/ExpressionParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,21 +183,21 @@ public <T> T evaluate(Class<T> type, String expr, Map<String, Object> variables)
183183
stack.push(result);
184184
} else if (vars.containsKey(token)) {
185185
stack.push(vars.get(token));
186-
Log.debug("Push variable: " + token);
186+
Log.debug("Add variable: " + token);
187187
} else if ("true".equalsIgnoreCase(token) || "false".equalsIgnoreCase(token)) {
188188
stack.push(Boolean.parseBoolean(token));
189189
} else if (token.equals("null")) {
190190
stack.push(null);
191-
Log.debug("Push null");
191+
Log.debug("Add null");
192192
} else if (WorkflowNode.VARIABLE_PATTERN.matcher(token).matches()) {
193193
var variableName = token.replace("{{", "").replace("}}", "").trim();
194194
var variable = consume(variableName, variables);
195195
stack.push(variable);
196-
Log.debug("Push variable: " + variableName);
196+
Log.debug("Add variable: " + variableName);
197197
} else {
198198
try {
199199
stack.push(Double.parseDouble(token));
200-
Log.debug("Push number: " + token);
200+
Log.debug("Add number: " + token);
201201
} catch (Exception e) {
202202
throw new WorkflowError("Invalid token: <" + token + ">", e);
203203
}

0 commit comments

Comments
 (0)