move debug output to a more useful location

This commit is contained in:
Morgan McMillian 2021-11-12 07:40:32 -08:00
parent 8b1c630d83
commit 6ae5312aa3

View file

@ -51,10 +51,6 @@ def parse(data, pnut, mstdn):
logger.error("can't get the message, bailing out") logger.error("can't get the message, bailing out")
return return
logger.debug(data['Subject'])
logger.debug(body)
logger.debug(len(attachments))
parsebody = body.split('\n') parsebody = body.split('\n')
for line in parsebody: for line in parsebody:
if line == "-- ": if line == "-- ":
@ -69,6 +65,10 @@ def parse(data, pnut, mstdn):
logger.debug(f"Chat-Version: {deltac}") logger.debug(f"Chat-Version: {deltac}")
subject = "" subject = ""
logger.debug(data['Subject'])
logger.debug(body)
logger.debug(len(attachments))
if pnut: if pnut:
post_pnut(subject, body, attachments) post_pnut(subject, body, attachments)