log full exception information when calling JSR223 scripts (#3176)

* 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>
pull/3178/head
Cody Cutrer 2022-11-27 01:28:36 -07:00 committed by GitHub
parent 27b847f40c
commit 0cceb5b156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ public class ScriptEngineManagerImpl implements ScriptEngineManager {
}
} catch (Exception ex) {
logger.error("Error during evaluation of script '{}': {}", engineIdentifier, ex.getMessage());
logger.debug("", ex);
}
}
}