remove extra logs

This commit is contained in:
James Moffet
2022-07-26 11:39:00 -07:00
parent 17e25d6f61
commit 1a204ae872
6 changed files with 4 additions and 42 deletions

View File

@@ -170,7 +170,7 @@ def upload_letter(service_id):
# TODO: get page count from the sanitise response once template preview handles malformed files nicely
page_count = pdf_page_count(BytesIO(pdf_file_bytes))
except PdfReadError:
current_app.logger.info('Invalid PDF uploaded for service_id: {}'.format(service_id))
current_app.logger.error('Invalid PDF uploaded for service_id: {}'.format(service_id))
return invalid_upload_error(
"Theres a problem with your file",
'Notify cannot read this PDF.<br>Save a new copy of your file and try again.'