Skip to content

Commit

Permalink
log full exception information when calling JSR223 scripts (#3176)
Browse files Browse the repository at this point in the history
* log full exception information when calling JSR223 scripts

The scripts are user code, so in order to help them debug their code,
the full stack trace is very useful.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer authored Nov 27, 2022
1 parent 27b847f commit 0cceb5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public void loadScript(String engineIdentifier, InputStreamReader scriptData,
}
} catch (Exception ex) {
logger.error("Error during evaluation of script '{}': {}", engineIdentifier, ex.getMessage());
logger.debug("", ex);
}
}
}
Expand Down

0 comments on commit 0cceb5b

Please sign in to comment.