Skip to content

Commit

Permalink
Log when gevent is used but WebSocket is missing (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicEric authored and miguelgrinberg committed Dec 30, 2019
1 parent a05ff51 commit 15ad45a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ def run_server():
from geventwebsocket.handler import WebSocketHandler
websocket = True
except ImportError:
app.logger.warning(
'WebSocket transport not available. Install '
'gevent-websocket for improved performance.')
websocket = False

log = 'default'
Expand Down

0 comments on commit 15ad45a

Please sign in to comment.