You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Logs: each write to notes, folders and spaces says what it changed #1923
Context — An action is logged by its name, a call to the core by its name, duration and outcome (#1843, #1844): neither says which note, folder or space it touched, nor what changed. Played on a session, a closing writes #8 Notes::Editor::Save then #9 Notes::Editor::Save, each a notes::update, and nothing tells whether the two wrote the same thing. Asked by the owner: a line that says what was written, with its id, in every build.
Change — Each service function of the core 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 kind of note, the parts that changed, and what was written through Sensitive — whole in a development build, its length in a release.
INFO [db] engine::notes: updated 3f2a91c0 (Note): content « sudo systemctl restart api »
INFO [db] engine::notes: duplicated 3f2a91c0 into 9b1c44e2 (Note) « Restart the API (copy) »
INFO [db] engine::notes: 1 note to the trash: 9b1c44e2
To do
One line a write in notes.rs, folders.rs, spaces.rs, attachments.rs: created, updated (the parts of the patch that are set), converted, duplicated, deleted, restored, purged, moved, filed, tagged, untagged, pinned, prioritised, fields kept or filled, revision restored, trash emptied; folders and spaces created, renamed, moved, deleted. Reads stay at the call's debug line.
Ids written whole; a list of ids past ten says how many more.
The wiki's logs page: what the core says, beside the actions and the calls.
One pull request into dev/1.3.3, after the one for Sensitive.
Tests
An engine test per area hears its writes: the ids, the kind and the parts changed are in the line, the text written appears only as its length.
Activity
Logs: each write to notes, folders and spaces says what it changed
vmillet-dev commentedon Dec 6, 2026
Fixed by #1926, merged into
dev/1.3.3.Generated by Claude Code
Logs: each write to notes, folders and spaces says what it changed (#…