Skip to content

feat: expose acquisition error log via RawFile.error_log()#15

Merged
Nathan-D-R merged 2 commits into
Sigilweaver:mainfrom
Nabejo:feat/py-error-log
Jul 8, 2026
Merged

feat: expose acquisition error log via RawFile.error_log()#15
Nathan-D-R merged 2 commits into
Sigilweaver:mainfrom
Nabejo:feat/py-error-log

Conversation

@Nabejo

@Nabejo Nabejo commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds RawFile.error_log() (Python), returning the already-decoded
    acquisition error log (RawFileReader::error_log: Vec<ErrorEntry>) as a
    list of {"time": ..., "message": ...} dicts, in log order. time is the
    acquisition-relative time in minutes.
  • Updates CHANGELOG.md under ## [Unreleased].

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test --all
  • No Python test suite exists in the repo to run pytest against.

Closes #9

The Rust core already decodes the acquisition error log
(RawFileReader::error_log: Vec<ErrorEntry>) but none of it was surfaced
to Python. Adds RawFile.error_log() returning a list of
{"time": ..., "message": ...} dicts in log order.

Closes Sigilweaver#9
Copilot AI review requested due to automatic review settings July 8, 2026 22:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR exposes the Rust core’s already-decoded acquisition error log (RawFileReader::error_log) through the Python bindings as a new RawFile.error_log() method, and documents the addition in the changelog.

Changes:

  • Added RawFile.error_log() to the PyO3 bindings, returning a list of {"time": ..., "message": ...} dicts in log order.
  • Updated CHANGELOG.md under ## [Unreleased] to describe the new Python API.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/opentfraw-py/src/lib.rs Adds a new PyO3-exposed RawFile.error_log() method that converts RawFileReader.error_log entries into Python dicts.
CHANGELOG.md Documents the new Python binding API in the Unreleased “Added” section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
opentfraw-docs f759959 Jul 08 2026, 11:40 PM

@Nathan-D-R
Nathan-D-R merged commit affa15c into Sigilweaver:main Jul 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose acquisition error log to Python bindings

3 participants