Github user pjfanning commented on the issue:
https://github.com/apache/spark/pull/18658
@marmbrus How about something like?:
`
val msg = s"failed to compile: $e"
logError(msg, e)
logInfo(formatted)
throw new JaninoRuntimeException(msg, e)
`
Users with info logging enabled would get the code output when an issue
arises but users who don't want to log the code could apply a log level of Warn
or Error to the class.
If we are going to output the code, then it feels like we should output it
all for completeness. I don't have a strong opinion on this latter point
though. There is an alternate argument that for large code, then outputting a
truncated version might be enough.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]