How to disable sentry on development environment? #538
Comments
If you dont configure it it wont be enabled. That is, dont set the DSN value. If you want to change logging, you can do that via your logging configuration. |
I checked the source code and if possible I could use a clarification on that, I saw:
And also
So I keep getting this message on my terminal. And I don't have the DSN value set do any value. I guess the solution is to configure the logger to discard messages coming from raven? |
Right. It shows that message when it's not sending messages. You just need to configure the logger with the standard mechanisms to disable it. |
Hello, not quite sure how to disable it from the logging, currently in the development env this message keeps popping and as developer, would like to find a way to hide it since in console I don't have use for it. Any advise on how todo that? am on django 1.8 and python 2.7 |
@mo-mughrabi we use the named logger 'raven' which can be configured using the standard logging package and tooling |
Something like: if DEBUG:
LOGGING['loggers']['raven'] = {
'handlers': ['null'],
'level': 'ERROR',
} |
+1 @cabello thanks |
I disabled the logging like so:
|
Hi, I am using raven 3.6.0 for production and test environments however I don't need it sending exceptions and messages from my local development environment, how can I disable it and prevent this message from appearing on my shell or every time I call
capture*
:The text was updated successfully, but these errors were encountered: