Skip to content

Commit

Permalink
add some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Apr 24, 2024
1 parent b0e798e commit 9b3f985
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ async def proxy():

headers = {'Authorization': f'token {token}'}

logger.info(cached_resp)

if cached_resp and "etag" in cached_resp:
if "last_checked" in cached_resp and current_time - last_checked < 60:
logger.info(f"Using newly cached data for URL: {url_to_fetch}")
Expand Down

0 comments on commit 9b3f985

Please sign in to comment.