forked from platypush/platypush
Improved logging traces names for backends and plugins
This commit is contained in:
parent
793b4df12d
commit
2b73f71803
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class Backend(Thread):
|
|||
self.thread_id = None
|
||||
self._stop = False
|
||||
self._kwargs = kwargs
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self.logger = logging.getLogger(self.__class__.__name__)
|
||||
|
||||
# Internal-only, we set the request context on a backend if that
|
||||
# backend is intended to react for a response to a specific request
|
||||
|
|
|
@ -9,7 +9,7 @@ class Plugin(object):
|
|||
""" Base plugin class """
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self.logger = logging.getLogger(self.__class__.__name__)
|
||||
if 'logging' in kwargs:
|
||||
self.logger.setLevel(getattr(logging, kwargs['logging'].upper()))
|
||||
|
||||
|
|
Loading…
Reference in a new issue