From b0cf581da974f0993c54cfbcb8a4d61dde6f3d83 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 6 Nov 2019 15:35:27 +0100
Subject: [PATCH] Remove logs
---
app/events.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/app/events.py b/app/events.py
index bd628c88..14ae3965 100644
--- a/app/events.py
+++ b/app/events.py
@@ -35,8 +35,8 @@ def connect():
@login_required
def disconnect():
'''
- ' On disconnect the session id (sid) of the connection gets placed in the
- ' disconnected list (see above).
+ ' On disconnect the session id (sid) of the connection gets removed from
+ ' connected sessions list (see above).
'''
connected_sessions.remove(request.sid)
@@ -70,7 +70,6 @@ def background_task(app, user_id, session_id, foreign=False):
'
' > where '*' is either 'corpora' or 'jobs'
'''
- logger = logging.getLogger(__name__)
with app.app_context():
user = db.session.query(User).get_or_404(user_id)
''' Get current values from the database. '''
@@ -85,7 +84,6 @@ def background_task(app, user_id, session_id, foreign=False):
room=session_id)
''' TODO: Implement maximum runtime for this loop. '''
while session_id in connected_sessions:
- logger.warning('Running...')
''' Get current values from the database '''
new_corpora = user.corpora_as_dict()
new_jobs = user.jobs_as_dict()
@@ -105,4 +103,3 @@ def background_task(app, user_id, session_id, foreign=False):
corpora = new_corpora
jobs = new_jobs
socketio.sleep(3)
- logger.warning('Stoping!')