# HG changeset patch # User Ludovic Chabant # Date 1724859612 25200 # Node ID 268b287461c06ee2fc8e17128d047b5e16a06bc9 # Parent 2e57d0fd8ceb42dc33dbd6570d80f958a3ad34e8 Add debug logging for what gets flagged as microposts diff -r 2e57d0fd8ceb -r 268b287461c0 silorider/parse.py --- a/silorider/parse.py Sat Aug 10 21:19:44 2024 -0700 +++ b/silorider/parse.py Wed Aug 28 08:40:12 2024 -0700 @@ -214,10 +214,13 @@ name = self.get('name') content = self.get('content-plain') if content and not name: + logger.debug("Flagging as micropost: has content but no name") is_micro = True elif name and not content: + logger.debug("Flagging as micropost: has name but no content") is_micro = True elif name and content: + logger.debug("Flagging as micropost: title is a truncation of content") shortest = min(len(name), len(content)) is_micro = (name[:shortest] == content[:shortest]) self._props['is_micropost'] = is_micro