From e4f81472fc7e468ee5fa1a752aa59dea935ad85b Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 16 Oct 2019 05:26:47 +0000 Subject: [PATCH] Fix copy/paste error, switch to info logging --- README.md | 2 +- apiserver/feed.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2aedf2a..538681f 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Then run `sudo certbot --nginx` and follow the prompts, enable redirect. This program is free and open-source software licensed under the MIT License. Please see the `LICENSE` file for details. -That means you have the right to study, change, and distribute the software and source code to anyone and for any purpose as long as you grant the same rights when distributing it. You deserve these rights. Please take advantage of them because I like pull requests and would love to see this code put to use. +That means you have the right to study, change, and distribute the software and source code to anyone and for any purpose. You deserve these rights. Please take advantage of them because I like pull requests and would love to see this code put to use. ## Acknowledgements diff --git a/apiserver/feed.py b/apiserver/feed.py index 2d7fba8..cef832f 100644 --- a/apiserver/feed.py +++ b/apiserver/feed.py @@ -30,7 +30,7 @@ def get_article(url): data = {'submitid': '9tjtS1EYe5wy8AJiYgVfH9P97uHU1IHG4lO67hsQpHOC3KKJrhqVIoQG2U7Rg%2Fpr', 'url': url} r = requests.post(ARCHIVE_API, data=data, timeout=20, allow_redirects=False) if r.status_code == 200: - logging.error('Submitted for archiving. Skipping to wait...') + logging.info('Submitted for archiving. Skipping to wait...') return '' elif 'location' in r.headers: url = r.headers['location'] @@ -47,7 +47,7 @@ def get_article(url): headers = {'Referer': 'https://outline.com/'} r = requests.get(OUTLINE_API, params=params, headers=headers, timeout=20) if r.status_code == 429: - logging.error('Rate limited by outline, sleeping 30s and skipping...') + logging.info('Rate limited by outline, sleeping 30s and skipping...') time.sleep(30) return '' if r.status_code != 200: