Skip to content

Configure Basic Logging.#484

Merged
CompRhys merged 7 commits intomainfrom
telemetry
Mar 2, 2026
Merged

Configure Basic Logging.#484
CompRhys merged 7 commits intomainfrom
telemetry

Conversation

@CompRhys
Copy link
Copy Markdown
Member

@CompRhys CompRhys commented Mar 2, 2026

Log all the things.

using f-strings in logs are bad because it forces them to instantiate even if filtered, should really remove the ruff rule ignore added.

logs by default are written to a shared file which might be weird if multiple things are run simultaneously.

what do we want to log and at what level?

… structlog. swap scripts to use logging over prints.
@CompRhys CompRhys linked an issue Mar 2, 2026 that may be closed by this pull request
@CompRhys CompRhys requested a review from orionarcher March 2, 2026 01:35
Copy link
Copy Markdown
Collaborator

@orionarcher orionarcher left a comment

Choose a reason for hiding this comment

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

what do we want to log and at what level?

IMO this is a good first pass at logging, I would just advocate that we also log each new batch, as mentioned in the comments.

I think the shared file is fine, perhaps just document the logging behavior in the docs somewhere or maybe include it in the intro tutorial.

Comment thread torch_sim/autobatching.py
Comment thread torch_sim/runners.py Outdated
Comment thread torch_sim/autobatching.py
CompRhys and others added 3 commits March 2, 2026 11:48
Co-authored-by: Orion Cohen <27712051+orionarcher@users.noreply.github.com>
Signed-off-by: Rhys Goodall <rhys.goodall@outlook.com>
@CompRhys CompRhys marked this pull request as ready for review March 2, 2026 17:22
CompRhys added 3 commits March 2, 2026 13:01
Signed-off-by: Rhys Goodall <rhys.goodall@outlook.com>
@CompRhys CompRhys enabled auto-merge (squash) March 2, 2026 18:44
@CompRhys CompRhys merged commit a3e8b3f into main Mar 2, 2026
67 of 68 checks passed
@CompRhys CompRhys deleted the telemetry branch March 2, 2026 18:51
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 robust logging in runners, reporters, autobatchers

2 participants