mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Enable websocket logs in verbose mode
This commit is contained in:
parent
5f17b47d1a
commit
c74c23d658
1 changed files with 5 additions and 2 deletions
|
@ -89,7 +89,7 @@ class Web:
|
||||||
#
|
#
|
||||||
# It's probably #notourbug but we can fix it by forcing the mimetype.
|
# It's probably #notourbug but we can fix it by forcing the mimetype.
|
||||||
# https://github.com/onionshare/onionshare/issues/1443
|
# https://github.com/onionshare/onionshare/issues/1443
|
||||||
mimetypes.add_type('text/javascript', '.js')
|
mimetypes.add_type("text/javascript", ".js")
|
||||||
|
|
||||||
# The flask app
|
# The flask app
|
||||||
self.app = Flask(
|
self.app = Flask(
|
||||||
|
@ -162,7 +162,10 @@ class Web:
|
||||||
elif self.mode == "website":
|
elif self.mode == "website":
|
||||||
self.website_mode = WebsiteModeWeb(self.common, self)
|
self.website_mode = WebsiteModeWeb(self.common, self)
|
||||||
elif self.mode == "chat":
|
elif self.mode == "chat":
|
||||||
self.socketio = SocketIO()
|
if self.common.verbose:
|
||||||
|
self.socketio = SocketIO(logger=True, engineio_logger=True)
|
||||||
|
else:
|
||||||
|
self.socketio = SocketIO()
|
||||||
self.socketio.init_app(self.app)
|
self.socketio.init_app(self.app)
|
||||||
self.chat_mode = ChatModeWeb(self.common, self)
|
self.chat_mode = ChatModeWeb(self.common, self)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue