mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
add some trace logging to debug test failure
This commit is contained in:
parent
8a51f28c3d
commit
fdb24f2893
@ -313,6 +313,9 @@ class RethinkDbFrontier:
|
||||
representing the same url but with possibly different metadata.
|
||||
'''
|
||||
existing_page.priority += fresh_page.priority
|
||||
self.logger.trace(
|
||||
'adding hashtags %r to existing hashtags %r for page %s',
|
||||
existing_page.hashtags, fresh_page.hashtags)
|
||||
existing_page.hashtags = list(set(
|
||||
existing_page.hashtags + fresh_page.hashtags))
|
||||
existing_page.hops_off = min(
|
||||
@ -375,9 +378,7 @@ class RethinkDbFrontier:
|
||||
decisions['accepted'].add(fresh_page.url)
|
||||
if fresh_page.id in pages:
|
||||
page = pages[fresh_page.id]
|
||||
page.hashtags = list(set((page.hashtags or [])
|
||||
+ fresh_page.hashtags))
|
||||
page.priority += fresh_page.priority
|
||||
self._merge_page(page, fresh_page)
|
||||
counts['updated'] += 1
|
||||
else:
|
||||
pages[fresh_page.id] = fresh_page
|
||||
|
Loading…
x
Reference in New Issue
Block a user