When using a tool like Sentry, you might want to logger.exception(e) instead of a string error message, that way the whole stack trace with helpful debugging information (local variables...) is included in Sentry.
Instead you can do logger.exception(“something helpful to give a little more context at a glance”)