Repository navigation
Logs: each write to notes, folders and spaces says what it changed - #1926
Merged
Merged
Conversation
Each service function that writes notes, tags, fields, attachments, folders or spaces logs one line at info once it has written: what it did, the ids it touched, the note's kind and the parts it changed, what was written in them through Sensitive. Closes #1923 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5syDjY1sDvi7chZYW8
vmillet-dev
force-pushed
the
logs-writes
branch
from
December 6, 2026 11:16
0b87d5a to
86fa9b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1923. Stacked on #1925 (
Sensitive): its base islogs-sensitiveuntil that one is merged.What changes
infoper write of the core, once it has written, under its module:engine::notes,engine::folders,engine::spaces,engine::attachments. It says what was done, the ids touched (whole; a batch names ten, then counts the rest), the note's kind, and the parts changed, with what was written in them throughSensitive.engine::logged(listed,written) andengine::notes::logged(patched,holding) format the lines; each function writes its own.let x = engine.write(…)?; log::info!(…); Ok(x). A write that fails logs nothing more than its call's line.What the session played earlier now reads, in a debug build:
and in a release,
content ‹26 chars›.Checks run
cargo fmt --all --check,cargo clippy -p engine -p ui -p app --all-targets --all-features -- -D warnings.cargo test -p engine: all pass, withcommands::loggednew: two tests hear a note's writes (created, updated, converted, fields kept, duplicated, tagged, to the trash) and a space's, a folder's and an attachment's, find their ids, kinds and parts, and no typed sentinel (the switch is off in a test).cargo test -p ui --lib: 1 582 passed, 4 ignored;state::logged_testsstill passes with every new line heard.node scripts/architecture-links.mjs.Generated by Claude Code