db change
This commit is contained in:
@@ -39,7 +39,11 @@ class LoggingMiddleware(BaseHTTPMiddleware):
|
||||
|
||||
try:
|
||||
body = json.loads(body_bytes)
|
||||
body=body.get("detail", None)
|
||||
if not isinstance(body, bool):
|
||||
body=body.get("detail", None)
|
||||
else:
|
||||
body=None
|
||||
|
||||
except (json.JSONDecodeError, TypeError):
|
||||
body = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user