Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print logs once #52

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Print logs once #52

merged 2 commits into from
Sep 19, 2024

Conversation

Jacob-Stevens-Haas
Copy link
Owner

@Jacob-Stevens-Haas Jacob-Stevens-Haas commented Sep 17, 2024

Previously, experiment log handlers were added not at root logger, but at the
logger for each step's module. Later, we realized we wanted to capture all
logs, so the handlers instead got added to the root logger. However, when
there was more one step, this added an identical handler to root for each step,
thus emitting copies of same logrecords.

Now, the logging configuration is only handled in the trial setup.

Tests modified as well to check not only that requisite message is in log, but that it only occurs once

@yb6599 @MalachiteWind

Previously, experiment log handlers were added not at root, but at the
experiment step's node.  Since we want to capture all logs, the handlers
were instead added to the root logger.  However, when there was more
than one step, this added multiple identical handlers emitting copies of
the same logrecords.

Now, the logging configuration is only handled in the trial setup.
@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit a35553b into main Sep 19, 2024
6 checks passed
@Jacob-Stevens-Haas Jacob-Stevens-Haas deleted the print-once branch September 19, 2024 18:37
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.

1 participant