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
parent
27b847f40c
commit
0cceb5b156
|
@ -199,6 +199,7 @@ public class ScriptEngineManagerImpl implements ScriptEngineManager {
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
logger.error("Error during evaluation of script '{}': {}", engineIdentifier, ex.getMessage());
|
logger.error("Error during evaluation of script '{}': {}", engineIdentifier, ex.getMessage());
|
||||||
|
logger.debug("", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue