From 4fcdc6d60260ca79693fd7d1ce2ae03065d5ef0c Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 10 Mar 2020 12:52:42 +0100 Subject: pubmed: log to stderr --- python/fatcat_tools/harvest/pubmed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/harvest/pubmed.py b/python/fatcat_tools/harvest/pubmed.py index 34522eb3..3f31696e 100644 --- a/python/fatcat_tools/harvest/pubmed.py +++ b/python/fatcat_tools/harvest/pubmed.py @@ -187,7 +187,7 @@ def generate_date_file_map(host='ftp.ncbi.nlm.nih.gov'): fullpath = '/pubmed/updatefiles/{}.gz'.format(filename) date_str = date.strftime('%Y-%m-%d') mapping[date_str].add(fullpath) - print('added entry for {}: {}'.format(date_str, fullpath)) + print('added entry for {}: {}'.format(date_str, fullpath), file=sys.stderr) print('generated date-file mapping for {} dates'.format(len(mapping)), file=sys.stderr) return mapping -- cgit v1.2.3