Skip to content

Commit

Permalink
add more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
haatveit committed Feb 14, 2025
1 parent 2a91821 commit 441af5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tsdfileapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,9 @@ def prepare(self) -> Optional[Awaitable[None]]:
options.tenant_string_pattern, self.tenant
),
)
logger.debug(f"export dir: {self.export_dir}")
logger.debug(f"import dir: {self.import_dir}")
logger.debug(f"tenant dir: {self.tenant_dir}")

self.authnz = self.process_token_and_extract_claims(
check_tenant=(
Expand All @@ -1050,6 +1053,7 @@ def prepare(self) -> Optional[Awaitable[None]]:
)
)

logger.debug("validating tenant from url")
tenant = tenant_from_url(self.request.uri)
if not options.valid_tenant.match(tenant):
raise ClientAuthorizationError("URI does not contain a valid tenant")
Expand Down

0 comments on commit 441af5a

Please sign in to comment.