Skip to content

Commit

Permalink
Report missing websocket client as an error in log (Fixes miguelgrinb…
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Feb 22, 2021
1 parent 792bdd0 commit 2f806ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def _connect_websocket(self, url, headers, engineio_path):
"""Establish or upgrade to a WebSocket connection with the server."""
if websocket is None: # pragma: no cover
# not installed
self.logger.warning('websocket-client package not installed, only '
'polling transport is available')
self.logger.error('websocket-client package not installed, only '
'polling transport is available')
return False
websocket_url = self._get_engineio_url(url, engineio_path, 'websocket')
if self.sid:
Expand Down

0 comments on commit 2f806ac

Please sign in to comment.