suppress logging of umbraBehaviorFinished() message which is sent a lot

This commit is contained in:
Noah Levitt 2014-08-01 16:22:45 -07:00
parent 8e44e18053
commit dd9ef50484
2 changed files with 5 additions and 3 deletions

View file

@ -144,11 +144,12 @@ class Browser:
self._behavior = None
def send_to_chrome(self, **kwargs):
def send_to_chrome(self, suppress_logging=False, **kwargs):
msg_id = next(self.command_id)
kwargs['id'] = msg_id
msg = json.dumps(kwargs)
self.logger.debug('sending message to {}: {}'.format(self._websock, msg))
if not suppress_logging:
self.logger.debug('sending message to {}: {}'.format(self._websock, msg))
self._websock.send(msg)
return msg_id