From d0d48236ff0fd1bafc9970dc0131e1a91c5cb842 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sun, 4 Jan 2026 20:52:13 -0500 Subject: [PATCH] Add decode result and channel_key debug logging --- frontends/web/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/web/app.py b/frontends/web/app.py index d8644c2..a115bef 100644 --- a/frontends/web/app.py +++ b/frontends/web/app.py @@ -1197,6 +1197,7 @@ def decode_page(): ref_hash = hashlib.md5(ref_data).hexdigest()[:8] stego_hash = hashlib.md5(stego_data).hexdigest()[:8] print(f"[DECODE DEBUG] ref: {len(ref_data)} bytes, md5: {ref_hash}", file=sys.stderr) + print(f"[DECODE DEBUG] channel_key: '{channel_key}'", file=sys.stderr) print(f"[DECODE DEBUG] stego: {len(stego_data)} bytes, md5: {stego_hash}", file=sys.stderr) print(f"[DECODE DEBUG] passphrase: '{passphrase}', pin: '{pin}'", file=sys.stderr) @@ -1254,6 +1255,7 @@ def decode_page(): ) # Check for subprocess errors + print(f"[DECODE RESULT] success={decode_result.success}, error={decode_result.error}", file=sys.stderr) if not decode_result.success: error_msg = decode_result.error or "Decoding failed" # Check for channel key related errors