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")
return
logger.debug(data['Subject'])
logger.debug(body)
logger.debug(len(attachments))
parsebody = body.split('\n')
for line in parsebody:
if line == "-- ":
@ -69,6 +65,10 @@ def parse(data, pnut, mstdn):
logger.debug(f"Chat-Version: {deltac}")
subject = ""
logger.debug(data['Subject'])
logger.debug(body)
logger.debug(len(attachments))
if pnut:
post_pnut(subject, body, attachments)