LOGGER -> logger.
While logger may be a global variable, it is not constant. Let the linters complain!
This commit is contained in:
parent
a8473db87f
commit
09cc4ba4c1
4 changed files with 35 additions and 35 deletions
|
@ -8,7 +8,7 @@ from buildman.manager.basemanager import BaseManager
|
|||
from trollius.coroutines import From
|
||||
|
||||
REGISTRATION_REALM = 'registration'
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class DynamicRegistrationComponent(BaseComponent):
|
||||
""" Component session that handles dynamic registration of the builder components. """
|
||||
|
@ -17,12 +17,12 @@ class DynamicRegistrationComponent(BaseComponent):
|
|||
self.join(REGISTRATION_REALM)
|
||||
|
||||
def onJoin(self, details):
|
||||
LOGGER.debug('Registering registration method')
|
||||
logger.debug('Registering registration method')
|
||||
yield From(self.register(self._worker_register, u'io.quay.buildworker.register'))
|
||||
|
||||
def _worker_register(self):
|
||||
realm = self.parent_manager.add_build_component()
|
||||
LOGGER.debug('Registering new build component+worker with realm %s', realm)
|
||||
logger.debug('Registering new build component+worker with realm %s', realm)
|
||||
return realm
|
||||
|
||||
|
||||
|
|
Reference in a new issue