Hello guys. Quick question. We have a simple Django app working with Sentry. Whenever an exception (500 status code) happens, we get nice logged data (with info about users, request, additional data, etc). But when we manually do something like logger.error('A message')
, no additional data is passed.
I know I can do something like logger.error(‘A message’, extra={‘request’: request})`, but I was wondering if there’s a better way to do it, as it’s automatically done by raven/sentry when a usual exception happens.
Thanks!