From bd6d7a8c9263feab0f5ed0902b0b0e0081ec664c Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 13 Jun 2025 16:17:30 -0500 Subject: [PATCH] move of logging --- email_api/email_api/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/email_api/email_api/app.py b/email_api/email_api/app.py index ad69eb0..f65f46d 100644 --- a/email_api/email_api/app.py +++ b/email_api/email_api/app.py @@ -60,9 +60,10 @@ def process_email(domain): if not data: return jsonify({'error': 'Invalid payload'}), 400 + request_id = data.get('request_id', 'no-request-id') + logger.info(f"[{request_id}] INCOMING POST /process/{domain}: payload={data}") - request_id = data.get('request_id', 'no-request-id') content = data.get('email_content') compressed = data.get('compressed', False) raw = base64.b64decode(content)