Merge "Make websocket run in correct logging mode"

This commit is contained in:
Jenkins 2015-10-17 00:12:02 +00:00 committed by Gerrit Code Review
commit 98713540a8

View File

@ -72,9 +72,10 @@ class Driver(base.DriverBase):
@decorators.lazy_property(write=False)
def factory(self):
uri = 'ws://' + self._ws_conf.bind + ':' + str(self._ws_conf.port)
debug_enabled = LOG.isEnabledFor(logging.DEBUG)
return factory.ProtocolFactory(
uri,
debug=LOG.debug,
debug=debug_enabled,
handler=self._api,
external_port=self._ws_conf.external_port,
auth_strategy=self._auth_strategy,