move of logging

This commit is contained in:
Andreas Knuth 2025-06-13 16:17:30 -05:00
parent 67b97f514b
commit bd6d7a8c92
1 changed files with 2 additions and 1 deletions

View File

@ -60,9 +60,10 @@ def process_email(domain):
if not data: if not data:
return jsonify({'error': 'Invalid payload'}), 400 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}") 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') content = data.get('email_content')
compressed = data.get('compressed', False) compressed = data.get('compressed', False)
raw = base64.b64decode(content) raw = base64.b64decode(content)