Skip to content

Commit

Permalink
test logs again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmay48 committed Sep 13, 2023
1 parent d0ae084 commit b76c659
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public static Object eval(String script, Object input) throws ScriptException {
if (engine == null) {
engine = new NashornScriptEngineFactory().getScriptEngine();
}
if (engine == null) {
throw new RuntimeException(
"missing nashorn engine. Ensure you are running supported JVM");
}
Bindings bindings = engine.createBindings();
bindings.put("$", input);
return engine.eval(script, bindings);
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Console name="CONSOLE">
<PatternLayout pattern="%-4r [%t] %-5p %c %x - %m%n"/>
</Console>
<File name="File" filename="conductor_tests.log">
<File name="File" filename="../conductor_tests.log">
<PatternLayout pattern="%-4r [%t] %-5p %c %x - %m%n"/>
</File>
</Appenders>
Expand Down

0 comments on commit b76c659

Please sign in to comment.