From 2bdd86c04480e97b7e10ab37ec2dd93540105832 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 11 Jan 2021 12:18:33 +0000 Subject: [PATCH] Remove logging of session size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s no record of this warning in our logs at the moment. --- app/main/views/send.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 43b43f197..0ab0e203c 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -1,5 +1,4 @@ import itertools -import json from string import ascii_uppercase from zipfile import BadZipFile @@ -109,14 +108,6 @@ def get_example_letter_address(key): @main.route("/services//send//csv", methods=['GET', 'POST']) @user_has_permissions('send_messages', restrict_admin_usage=True) def send_messages(service_id, template_id): - # if there's lots of data in the session, lets log it for debugging purposes - # TODO: Remove this once we're confident we have session size under control - if len(session.get('file_uploads', {}).keys()) > 2: - current_app.logger.info('session contains large file_uploads - json_len {}, keys: {}'.format( - len(json.dumps(session['file_uploads'])), - session['file_uploads'].keys()) - ) - db_template = current_service.get_template_with_user_permission_or_403(template_id, current_user) email_reply_to = None