Skip to content

Commit

Permalink
chore: more logs
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
  • Loading branch information
ThibaultFy committed Jul 9, 2024
1 parent 32af228 commit ff6f9fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/substrapp/clients/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ def get(
) -> bytes:
"""Get asset data."""
content = _http_request(_Method.GET, channel, organization_id, url).content
logger.info("Downloading content succeed")

logger.info("Starting computing hash")
new_checksum = compute_hash(content, key=salt)
logger.info("Computing hash succeed")

if new_checksum != checksum:
raise IntegrityError(f"url {url}: checksum doesn't match {checksum} vs {new_checksum}")
return content
Expand Down

0 comments on commit ff6f9fc

Please sign in to comment.