Skip to content

Commit

Permalink
Merge pull request #2249 from sopel-irc/url-logging-levels
Browse files Browse the repository at this point in the history
url: bring additional sanity and calm to log output
  • Loading branch information
dgw authored Feb 12, 2022
2 parents 365cad7 + 1b68fe0 commit 37db663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:///
Expand Down

0 comments on commit 37db663

Please sign in to comment.