Repository navigation
Feat[Backend]: logging module in station crate - #685
Merged
Merged
Conversation
…d and when a logging session is started
pminmic
force-pushed
the
backend/logging
branch
from
December 2, 2026 19:45
7f5a502 to
bd934c3
Compare
pminmic
marked this pull request as ready for review
December 3, 2026 14:44
Merged
3 tasks
event::Channels renamed problems to notices and telemetry now reaches pipeline on its own queue (pipeline_data), so the event integration test waits there. Also formats the two files this branch touches and commits the Cargo.lock order left by the merge.
A full input queue is backpressure: event waits for a slot and logging keeps recording. Stopping the session on it lost every later record, and right after a start that opens many files it could stop the session that had just begun. Only write errors stop a session now.
The catalog only reads the boards. main already shares Arc<PodData> with net and event (and moves pod_data out of the Adj), so logging can take that same Arc instead of a separate copy of the whole ADJ.
…e error Logging takes a clone of event's notices sender (②) and sends a Warning when a session ends with StopReason::WriteError, so the operator learns that recording stopped. It uses try_send: the router may be waiting for room in logging's input, and waiting on ② would block both.
…of stopping A NaN or infinite order parameter is bad input, not a disk failure. The catalog now rejects it like any other invalid order (warning, row not written) and the session keeps recording, instead of stopping it as a write error.
LoggerCommand, the Commands fields and OrderForwarder::new were pub(crate), so main (a separate binary crate) could not build the Commands that connect the frontends to logging and event's orders.
serve_commands consumes websocket's LoggerCommand queue and drives
Logging: logger/variables ("<board>/<alias>") selects the next session,
logger/enable starts or stops it, and every enable is answered on
logger/response with the actual state. Without a selection every data
measurement is recorded, as competition-view expects.
JavierRibaldelRio
approved these changes
Dec 6, 2026
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.
Summary
Adds
station::loggingto persist backend events into recording sessions usingsoftware_core::logger.logging_path.logger_settings.json.ToLoggingchannel directly on a dedicated writer thread, resolving metadata through the shared ADJ and protocol Index.Orders are recorded after TCP confirmation, with the confirmed
OrderPacketserialized as compact JSON. Protection durations come from their ADJ definitions.Extra
software_core::logger, in the CSV implementation: add methodinstant.Follow-up work
Application startup and WebSocket control wiring remain pending. The planned integration is documented in
WEBSOCKET_INTEGRATION.md.Trace output and ADJ validator execution remain outside this implementation.