Skip to content

tree: add logging using tracing crate#54

Merged
jlebon merged 4 commits intomainfrom
logging
Feb 16, 2026
Merged

tree: add logging using tracing crate#54
jlebon merged 4 commits intomainfrom
logging

Conversation

@jlebon
Copy link
Copy Markdown
Member

@jlebon jlebon commented Feb 16, 2026

One thing sorely missing right now is any feedback of what chunkah is doing.

This remedies the situation quite a bit by hooking up the tracing crate and adding logging throughout the codebase. I might've went overboard with the trace level, though it's really nice to be able to follow exactly the data flow for any given path, from scanning, claiming,
packing, merging, and serializing to tar.

Change all our e2e tests to use the debug level.

Assisted-by: Claude Opus 4.5

Closes: #17

One thing sorely missing right now is any feedback of what chunkah is
doing.

This remedies the situation quite a bit by hooking up the tracing crate
and adding logging throughout the codebase. I might've went overboard
with the trace level, though it's really nice to be able to follow
exactly the data flow for any given path, from scanning, claiming,
packing, merging, and serializing to tar.

Change all our e2e tests to use the debug level.

Assisted-by: Claude Opus 4.5

Closes: #17
Add a convenience target that wraps the Containerfile.splitter workflow
from the README. It takes an image and optional chunkah arguments.

Assisted-by: Claude Opus 4.5
We need a real filesystem to apply security labels because overlayfs
prevents that unprivileged.

As mentioned in the comment, we probably should rewrite that whole
script to !bash to do the pretty diff we're looking for by inspecting
the objects using ostree-native APIs.

Anyway, this works for now.
Very often when I ask the agent to change a recipe, it always looks for
`justfile` first. This should help.

Assisted-by: Claude Opus 4.5
@jlebon jlebon enabled auto-merge (rebase) February 16, 2026 04:14
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully integrates the tracing crate for comprehensive logging across the codebase. It introduces a global verbosity flag, configures a tracing-subscriber with a clean output format, and adds detailed log messages at various levels (info, debug, trace, warn). The documentation has been updated with logging guidelines, and end-to-end tests now leverage the verbose output. The changes also include minor improvements to the Justfile and the differ tool, such as an environment check for ostree compatibility. Overall, the implementation is solid and follows the project's established patterns.

@jlebon jlebon disabled auto-merge February 16, 2026 04:19
@jlebon jlebon merged commit 421e394 into main Feb 16, 2026
4 checks passed
@jlebon jlebon deleted the logging branch February 16, 2026 04:26
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.

Add logging

1 participant