Skip to content

Commit

Permalink
Cut down on redundant debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffy-critter committed Jul 9, 2021
1 parent 449763c commit 06695a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authl/handlers/indieauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def find_endpoints(id_url: str,
profile = id_url

def _derive_endpoint(links, content, rel) -> typing.Optional[str]:
LOGGER.debug('links for %s: %s', id_url, links)
if links and rel in links:
LOGGER.debug("%s: Found %s link header: %s", id_url, rel, links[rel]['url'])
return links[rel]['url']
Expand Down Expand Up @@ -103,6 +102,8 @@ def _derive_endpoint(links, content, rel) -> typing.Optional[str]:

# Derive the useful IndieAuth endpoints
endpoints = cached.copy()

LOGGER.debug('links for %s: %s', id_url, links)
for rel in (
'authorization_endpoint',
'token_endpoint',
Expand Down

0 comments on commit 06695a0

Please sign in to comment.