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

Improve generator.md logging #343

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Improve generator.md logging #343

merged 1 commit into from
Oct 11, 2024

Conversation

bernstei
Copy link
Contributor

@bernstei bernstei commented Oct 11, 2024

Enable logging with logger_interval > 0, rather than when logger_kwargs is specified as before.

Default logging to stdout, and for stdout logging prepend each line with item # (file logging gets "item_" appended to filename, as before).

Logging test is improved by running in tmp_path, so that existence of logging files means something. New stdout logging test, but it's broken because pytest's capsys fixture fails to capture the MDLogger stdout for some reason. xfail for now.

Enable logging with logger_interval > 0

Default logging to stdout, and for stdout logging prepend each line
with item # (file logging gets "item_<N>" appended to filename, as
before).
@bernstei bernstei merged commit 80a5a23 into main Oct 11, 2024
3 checks passed
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