Make empty token more readable in logs.

Enterprises use "" for tokens. This was confusing to read in the logs
without making things more clear by adding quotes around the value.
This commit is contained in:
Jimmy Zelinskie 2014-11-20 15:22:34 -05:00
parent d0763862b1
commit 290c8abeb5

View file

@ -280,11 +280,11 @@ class BuildComponent(BaseComponent):
def _on_ready(self, token):
if self._component_status != 'waiting':
LOGGER.warning('Build component with token %s is already connected', self.expected_token)
LOGGER.warning('Build component (token "%s") is already connected', self.expected_token)
return
if token != self.expected_token:
LOGGER.warning('Builder token mismatch. Expected: %s. Found: %s', self.expected_token, token)
LOGGER.warning('Builder token mismatch. Expected: "%s". Found: "%s"', self.expected_token, token)
return
self._set_status(ComponentStatus.RUNNING)
@ -339,7 +339,7 @@ class BuildComponent(BaseComponent):
def _timeout(self):
self._set_status(ComponentStatus.TIMED_OUT)
LOGGER.warning('Build component %s timed out', self.expected_token)
LOGGER.warning('Build component (token "%s") timed out', self.expected_token)
self._dispose(timed_out=True)
def _dispose(self, timed_out=False):