Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url: bring additional sanity and calm to log output #2249

Merged
merged 1 commit into from
Feb 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
@@ -365,7 +365,7 @@ def process_urls(bot, trigger, urls):
title = find_title(url)
if not title:
# No title found: don't handle this URL
LOGGER.warning('No title found; ignoring URL: %s', url)
LOGGER.debug('No title found; ignoring URL: %s', url)
continue

# If the URL is over bot.config.url.shorten_url_length, shorten the URL
@@ -423,7 +423,7 @@ def find_title(url, verify=True):
# the data
response.close()
except requests.exceptions.ConnectionError:
LOGGER.exception('Unable to reach URL: %s', url)
LOGGER.debug('Unable to reach URL: %s', url, exc_info=True)
return None
except (
requests.exceptions.InvalidURL, # e.g. http:///