bugfix
This commit is contained in:
parent
ce87a9e3a5
commit
dc57e08030
|
|
@ -63,10 +63,11 @@ def process_email(domain):
|
|||
request_id = data.get('request_id', 'no-request-id')
|
||||
|
||||
payload_summary = {
|
||||
**k: (len(v) if k == 'email_content' else v)**
|
||||
k: (len(v) if k == 'email_content' else v)
|
||||
for k, v in data.items()
|
||||
if k != 'email_content' or isinstance(v, (str, bytes))
|
||||
}
|
||||
|
||||
logger.info(
|
||||
f"[{request_id}] INCOMING POST /process/{domain}: "
|
||||
f"payload_summary={payload_summary}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue