Skip to content

Commit

Permalink
tmp debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Apr 10, 2024
1 parent e0b6316 commit 75e4c05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/langsmith/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,11 @@ def with_cache(
)

def _filter_request_headers(request: Any) -> Any:
_LOGGER.error(f"Checking to see if {request.url} should be ignored")
if ignore_hosts and any(request.url.startswith(host) for host in ignore_hosts):
_LOGGER.error(f"Ignoring {request.url}: {ignore_hosts}")
return None
_LOGGER.error(f"Keeping {request.url}")
request.headers = {}
return request

Expand Down

0 comments on commit 75e4c05

Please sign in to comment.