mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 02:32:58 -03:00
Enable websocket logs in verbose mode
This commit is contained in:
parent
7e55e8e816
commit
3da0b7a3ea
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
Reference in a new issue