From 550a7888bfc1255c34b5235d6a0a5c02ed17b33c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 27 Sep 2021 22:58:05 +0200 Subject: [PATCH] enhance exception logging --- app/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 3187ea7af..a3f048391 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -2,7 +2,6 @@ # pylint: disable=invalid-name import os -import reprlib import socket import sys import time @@ -112,8 +111,8 @@ class LogExceptionFormatter(logging.Formatter): if request.method == "GET": record.http_params = str(request.args) else: - rep = reprlib.Repr() # abbrège - record.http_params = str(rep.repr(request.form)) + # rep = reprlib.Repr() # abbrège + record.http_params = str(request.form)[:2048] else: record.url = None record.remote_addr = None