-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Any insight into this error? Data related or code/version?
/opt/warctools/bin/warcfilter -H text /home/test/test.warc
Traceback (most recent call last):
File "/opt/warctools/bin/warcfilter", line 8, in
sys.exit(run())
File "/opt/warctools/lib/python2.7/site-packages/hanzo/warcfilter.py", line 121, in run
sys.exit(main(sys.argv))
File "/opt/warctools/lib/python2.7/site-packages/hanzo/warcfilter.py", line 71, in main
filter_archive(fh, options, pattern,out)
File "/opt/warctools/lib/python2.7/site-packages/hanzo/warcfilter.py", line 95, in filter_archive
code, content_type, message = parse_http_response(record)
File "/opt/warctools/lib/python2.7/site-packages/hanzo/warcfilter.py", line 34, in parse_http_response
logging.warning('trailing data in http response for %s'% record.url)
NameError: global name 'logging' is not defined
/opt/warctools/bin/warcfilter --help
Usage: warcfilter [options] pattern warc warc warc
Options:
-h, --help show this help message and exit
-l LIMIT, --limit=LIMIT
limit (ignored)
-I INPUT_FORMAT, --input=INPUT_FORMAT
input format (ignored)
-i, --invert invert match
-U, --url match on url
-T, --type match on (warc) record type
-C, --content-type match on (warc) record content type
-H, --http-content-type
match on http payload content type
-D, --warc-date match on WARC-Date header
-L LOG_LEVEL, --log-level=LOG_LEVEL
log level(ignored)
Any help would be appreciated!