Commits

Blue committed 0ad4a13

Made the Invalid post message when updating show the post's messageid for easier tracking of these.

Comments (0)

Files changed (1)

spotnet/connection.py

         try:
             raw = RawPost(postnumber, post)
         except InvalidPost as e:
-            logger("Skipped invalid post %s: %s" % (postnumber, e))
+            logger("Skipped invalid post %s %s: %s" % (postnumber, messageid, e))
             return False
         snp = Post.from_raw(raw)
         try:
             # but some sort of encoded nzb files (my guess)
             if not str(e).startswith('invalid byte sequence for encoding'):
                 raise
-            logger("Skipped invalid post %s: %s" % (postnumber, e))
+            logger("Skipped invalid post %s %s: %s" % (postnumber, messageid, e))
             return False
         else:
             logger("Added post %s: %s" % (raw.postnumber, raw.messageid))