From 6ae5312aa3887a71d0dcb9e7a1c9c1a46f7b06a7 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Fri, 12 Nov 2021 07:40:32 -0800 Subject: [PATCH] move debug output to a more useful location --- email2post.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/email2post.py b/email2post.py index 1865acd..ee109c1 100755 --- a/email2post.py +++ b/email2post.py @@ -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)