Skip to content

Commit

Permalink
Add some extra debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerberndt committed Jan 13, 2025
1 parent c2a7a22 commit 5e915d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/util/etherscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ async def fetch_verified_sources(explorer_url: str, target_path: str) -> bool:
"""
Fetch verified sources from an EVM explorer and store them locally.
"""

explorer = EVMExplorer()
try:
# Clean URL by removing query parameters and #code suffix
Expand Down
6 changes: 6 additions & 0 deletions src/util/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ async def fetch_github_file(url: str, target_path: str) -> bool:
Returns:
bool: True if file was successfully fetched and stored
"""

logger.debug(f"Fetching GitHub file: {url} to {target_path}")

try:
# Convert web URL to raw content URL
raw_url = url.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/").replace("/tree/", "/")
Expand Down Expand Up @@ -75,6 +78,9 @@ async def fetch_github_repo(url: str, target_path: str) -> bool:
Returns:
bool: True if repo was successfully fetched and stored
"""

logger.debug(f"Fetching GitHub repo: {url} to {target_path}")

try:
# Extract owner and repo from URL
parts = url.rstrip("/").split("/")
Expand Down

0 comments on commit 5e915d8

Please sign in to comment.