Dont implicitly configure log handlers
Because of the way logging propagation works this is complicated to ensure it's intelligent. Let's leave it up to the user to ensure LOGGING is configured appropriately for their application.
This commit is contained in:
parent
97ab6beff5
commit
110344408c
6
CHANGES
6
CHANGES
|
@ -1,3 +1,9 @@
|
|||
Version 5.11.0
|
||||
--------------
|
||||
|
||||
* ``Client.configure_logging`` has been removed, and handlers will not automatically
|
||||
be added to 'sentry' and 'raven' namespaces.
|
||||
|
||||
Version 5.10.3
|
||||
--------------
|
||||
|
||||
|
|
|
@ -133,8 +133,6 @@ class Client(object):
|
|||
|
||||
o = options
|
||||
|
||||
self.configure_logging()
|
||||
|
||||
self.raise_send_errors = raise_send_errors
|
||||
|
||||
# configure loggers first
|
||||
|
@ -225,14 +223,6 @@ class Client(object):
|
|||
def register_scheme(cls, scheme, transport_class):
|
||||
cls._registry.register_scheme(scheme, transport_class)
|
||||
|
||||
def configure_logging(self):
|
||||
for name in ('raven', 'sentry'):
|
||||
logger = logging.getLogger(name)
|
||||
if logger.handlers:
|
||||
continue
|
||||
logger.addHandler(logging.StreamHandler())
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
def get_processors(self):
|
||||
for processor in self.processors:
|
||||
yield self.module_cache[processor](self)
|
||||
|
|
Loading…
Reference in New Issue