having trouble setting up logging config

93 views
Skip to first unread message

Chris Priest

unread,
Apr 6, 2012, 12:12:59 PM4/6/12
to gets...@googlegroups.com
I want to achieve the following things:


1) not have duplicate errors in my sentry feed (one from django.request, and one from root)
2) all django exceptions get printed to the console as well as posted to sentry.
2) have all exceptions show up in my sentry feed with the exception name in the sub title of the item
3) have loggers show up under the logger that they came from (not just root)


Here is my logging config:

https://gist.github.com/2321049

I could just have everything go to sentry from the root handler, but I dont want that because I need to be able to filter in sentry by logger, and if everything came from root, I can't do that.

I also need to have exceptions go to sentry from the root logger, instead of django.request, because when they come from django.request, they display in sentry with just "Internal server error", instead of the exception type.
Here is a screen shot of what I'm talking about: http://i.imgur.com/wrqKD.png

See how it just says "Internal Server Error", thats no good. I prefer this:

What do I need to change in my logger settings to fit my needs? Btw, sentry is da bomb, thanks for making it.

David Cramer

unread,
Apr 6, 2012, 8:28:10 PM4/6/12
to gets...@googlegroups.com
Anything that you don't want to go to sentry (such as django.request), you can set propagate to False on. This means they'll only
go to the handler defined for that logger.


Reply all
Reply to author
Forward
0 new messages