Skip to content

Commit

Permalink
fix(handler): lower invalid checksum log in tar handler from error to…
Browse files Browse the repository at this point in the history
… debug.

Using error for signaling a false positive is too noisy.
  • Loading branch information
qkaiser committed Jan 5, 2024
1 parent 49e0ce6 commit 5b9afc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unblob/handlers/archive/tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def signed_sum(octets) -> int:
return sum(b if b < 128 else 256 - b for b in octets)

if header.chksum[6:8] not in (b"\x00 ", b" \x00"):
logger.error(
logger.debug(
"Invalid checksum format",
actual_last_2_bytes=header.chksum[6:8],
handler=self.NAME,
Expand Down

0 comments on commit 5b9afc1

Please sign in to comment.