debug: added more logging to narrow down issue
This commit is contained in:
parent
af51c317e2
commit
a62a0fcdc3
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,7 @@ def main():
|
|||
feeds = feedparser.parse(hook["url"])
|
||||
latest_post = []
|
||||
prev_best = 0
|
||||
logger.debug("About to sort through entries for feed %s ...", hook["name"])
|
||||
for feed in feeds["entries"]:
|
||||
try:
|
||||
bad_time = False
|
||||
|
@ -145,6 +146,7 @@ def main():
|
|||
)
|
||||
# Hash the title and time of the latest post and use that to determine if it's been posted
|
||||
# Yes, SHA3-512 is totally unnecessary for this purpose, but I love SHA3
|
||||
logger.debug("About to hash %s ...", latest_post["title"])
|
||||
try:
|
||||
new_hash = hashlib.sha3_512(
|
||||
bytes(latest_post["title"] + str(published_time), "utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue