Mercurial > silorider
changeset 76:268b287461c0
Add debug logging for what gets flagged as microposts
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 28 Aug 2024 08:40:12 -0700 |
parents | 2e57d0fd8ceb |
children | 5381655e7f6d |
files | silorider/parse.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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