aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-11-08 12:28:04 -0800
committerBryan Newbold <bnewbold@archive.org>2020-11-08 12:28:04 -0800
commit2fdd892f8c4a56247840fcb2e64c07f518b4bfbb (patch)
tree40733fa1dba6b2d11a4af47382881cc6282b0152
parent189eac07c2b559827fcd70c330821a940e65301d (diff)
downloadsandcrawler-2fdd892f8c4a56247840fcb2e64c07f518b4bfbb.tar.gz
sandcrawler-2fdd892f8c4a56247840fcb2e64c07f518b4bfbb.zip
direct some more warnings to sys.stderr, not stdout
-rw-r--r--python/sandcrawler/ia.py4
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