mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Remove logging of session size
There’s no record of this warning in our logs at the moment.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import itertools
|
import itertools
|
||||||
import json
|
|
||||||
from string import ascii_uppercase
|
from string import ascii_uppercase
|
||||||
from zipfile import BadZipFile
|
from zipfile import BadZipFile
|
||||||
|
|
||||||
@@ -109,14 +108,6 @@ def get_example_letter_address(key):
|
|||||||
@main.route("/services/<uuid:service_id>/send/<uuid:template_id>/csv", methods=['GET', 'POST'])
|
@main.route("/services/<uuid:service_id>/send/<uuid:template_id>/csv", methods=['GET', 'POST'])
|
||||||
@user_has_permissions('send_messages', restrict_admin_usage=True)
|
@user_has_permissions('send_messages', restrict_admin_usage=True)
|
||||||
def send_messages(service_id, template_id):
|
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)
|
db_template = current_service.get_template_with_user_permission_or_403(template_id, current_user)
|
||||||
|
|
||||||
email_reply_to = None
|
email_reply_to = None
|
||||||
|
|||||||
Reference in New Issue
Block a user