diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-11-08 12:28:04 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-11-08 12:28:04 -0800 |
commit | 2fdd892f8c4a56247840fcb2e64c07f518b4bfbb (patch) | |
tree | 40733fa1dba6b2d11a4af47382881cc6282b0152 /python | |
parent | 189eac07c2b559827fcd70c330821a940e65301d (diff) | |
download | sandcrawler-2fdd892f8c4a56247840fcb2e64c07f518b4bfbb.tar.gz sandcrawler-2fdd892f8c4a56247840fcb2e64c07f518b4bfbb.zip |
direct some more warnings to sys.stderr, not stdout
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/ia.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py index 639fab8..e2e97a7 100644 --- a/python/sandcrawler/ia.py +++ b/python/sandcrawler/ia.py @@ -818,7 +818,7 @@ class SavePageNowClient: non-200 remote statuses, invalid hosts/URLs, timeouts, backoff, etc. """ if capture_outlinks: - print(" capturing outlinks!", file=sys.stdout) + print(" capturing outlinks!", file=sys.stderr) if not (self.ia_access_key and self.ia_secret_key): raise Exception("SPN2 requires authentication (IA_ACCESS_KEY/IA_SECRET_KEY)") if request_url.startswith("ftp://"): @@ -858,7 +858,7 @@ class SavePageNowClient: "Didn't get expected 'job_id' field in SPN2 response: {}".format(resp_json)) job_id = resp_json['job_id'] - print(f" SPNv2 running: job_id={job_id} url={request_url}", file=sys.stdout) + print(f" SPNv2 running: job_id={job_id} url={request_url}", file=sys.stderr) # poll until complete final_json = None |