mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Added some print statements for debugging.
This commit is contained in:
parent
465195f203
commit
8bf2f9debb
@ -100,16 +100,21 @@ class AccessChecker(object):
|
||||
last_url = None
|
||||
|
||||
for cdx in cdx_iter:
|
||||
print("Looking at",cdx)
|
||||
url = cdx.get('url')
|
||||
print(url)
|
||||
# if no url, possible idx or other object, don't apply any checks and pass through
|
||||
if not url:
|
||||
yield cdx
|
||||
continue
|
||||
|
||||
rule = self.find_access_rule(url, cdx.get('timestamp'), cdx.get('urlkey'))
|
||||
print(rule)
|
||||
access = rule.get('access', 'exclude')
|
||||
print(access)
|
||||
if access == 'exclude':
|
||||
continue
|
||||
|
||||
print("Yielding...")
|
||||
cdx['access'] = access
|
||||
yield cdx
|
||||
|
Loading…
x
Reference in New Issue
Block a user