better logging
This commit is contained in:
parent
494bfd6a10
commit
663faa6a08
|
|
@ -149,8 +149,16 @@ class MessageProcessor:
|
|||
raw_bytes = parsed.as_bytes()
|
||||
|
||||
except Exception as e:
|
||||
log(f"⚠ Parsing/Logic Error: {e}. Sending original.", 'WARNING', worker_name)
|
||||
traceback.print_exc()
|
||||
# --- VERBESSERTES ERROR LOGGING ---
|
||||
error_msg = f"⚠ Parsing/Logic Error: {e}. Sending original."
|
||||
log(error_msg, 'WARNING', worker_name)
|
||||
|
||||
# Den vollen Traceback ins Log schreiben (als ERROR markiert)
|
||||
tb_str = traceback.format_exc()
|
||||
log(f"Full Traceback:\n{tb_str}", 'ERROR', worker_name)
|
||||
# ----------------------------------
|
||||
|
||||
# Fallback: Wir versuchen trotzdem, die Original-Mail zuzustellen
|
||||
from_addr_final = from_addr
|
||||
is_bounce = False
|
||||
skip_rules = False
|
||||
|
|
|
|||
Loading…
Reference in New Issue