Skip to content

Logs: each write to requests and environments says what it changed - #1927

Merged
vmillet-dev merged 1 commit into
dev/1.3.3from
logs-http
Dec 6, 2026
Merged

vmillet-dev merged 1 commit into
dev/1.3.3from
logs-http

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1924. Stacked on #1926 (notes, folders, spaces), itself on #1925 (Sensitive): its base is logs-writes until those are merged.

What changes

  • One line at info per write of the requests' side, under engine::http, once it has written:
    • collections, folders and requests created (a request with its method and URL), saved (the parts the patch sets: name, method, URL with the counts of params and headers), renamed, duplicated, moved, deleted; a collection moved in the list; settings and run orders saved (their counts);
    • history cleared, an entry deleted or put back; a cookie, a domain's cookies or the jar deleted; an answer saved to a path;
    • environments created, saved (name, colour, protection, variables by name=value), duplicated, deleted; the globals saved.
  • A send says the request's id (a draft before it is saved), its method, its URL as typed, then its status, duration and size, or its error's code. Its headers and body are not said, nor what its variables resolved to.
  • Names, URLs, domains, paths and variables go through Sensitive: whole in a development build's terminal, their length elsewhere.
  • The wiki's logs page says it in « What the core wrote ».

Not here: a collection's run (each of its steps is a send of its own, said by the runner's events) and a WebSocket's frames.

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, with commands::logged::a_request_saved_and_sent_is_logged_by_its_id_its_method_and_its_status new (a collection, a request created and saved, an environment and its secret variable, a send to a server on the loopback: ids, method and status in the lines, every sentinel only as its length).
  • cargo test -p ui --lib logged: state::logged_tests still passes over its request, header, body, variable, script and environment.
  • node scripts/architecture-links.mjs.

Generated by Claude Code

@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Dec 6, 2026 — with Claude
Base automatically changed from logs-writes to dev/1.3.3 December 6, 2026 11:33
Each service function that writes requests, collections, folders of
requests, settings, run orders, history, cookies or environments logs one
line at info: what it did and the ids it touched, names, URLs and variables
through Sensitive. A send says the request's id, its method, its URL and its
status, duration and size, or its error's code.

Closes #1924

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BbVs5syDjY1sDvi7chZYW8
@vmillet-dev
vmillet-dev merged commit 5b5fe56 into dev/1.3.3 Dec 6, 2026
11 checks passed
@vmillet-dev
vmillet-dev deleted the logs-http branch December 6, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants