mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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
|
last_url = None
|
||||||
|
|
||||||
for cdx in cdx_iter:
|
for cdx in cdx_iter:
|
||||||
|
print("Looking at",cdx)
|
||||||
url = cdx.get('url')
|
url = cdx.get('url')
|
||||||
|
print(url)
|
||||||
# if no url, possible idx or other object, don't apply any checks and pass through
|
# if no url, possible idx or other object, don't apply any checks and pass through
|
||||||
if not url:
|
if not url:
|
||||||
yield cdx
|
yield cdx
|
||||||
continue
|
continue
|
||||||
|
|
||||||
rule = self.find_access_rule(url, cdx.get('timestamp'), cdx.get('urlkey'))
|
rule = self.find_access_rule(url, cdx.get('timestamp'), cdx.get('urlkey'))
|
||||||
|
print(rule)
|
||||||
access = rule.get('access', 'exclude')
|
access = rule.get('access', 'exclude')
|
||||||
|
print(access)
|
||||||
if access == 'exclude':
|
if access == 'exclude':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
print("Yielding...")
|
||||||
cdx['access'] = access
|
cdx['access'] = access
|
||||||
yield cdx
|
yield cdx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user