Sending an exception to logger.error()
will create an event in Sentry with the type of default and a level of error. This is the equivalent of calling capture_message()
with the level of error, and does not attach a stacktrace by default.
The recommended method to get stacktraces while using the logger is to use logger.exception()
instead.