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

Logging cleanup #452

Merged
merged 3 commits into from Apr 6, 2020
Merged

Logging cleanup #452

merged 3 commits into from Apr 6, 2020

Conversation

cole-h
Copy link
Member

@cole-h cole-h commented Apr 6, 2020

Currently, our logs are a bit inconsistent, with some being
{e,}println!s and others utilizing macros from the log crate. One
line might look like INFO:ofborg::tasks::evaluate: Removing labels: [], while the next might look like Already: [].


My hope is that this will keep related logging together. There have been a few ofborg-internal-errors labeled recently, yet not showing up in the logs. If I'm lucky, this will alleviate that issue.

Since the plan seems to be, in the long run, to switch to the slog family of crates, this is more of a temporary solution.

I didn't touch the {e,}println!s inside tests because I didn't really see a point. Easily remedied, though, if preferred.

Cleans up logging output so that things that belong together stay
together.
Currently, our logs are a bit inconsistent, with some being
`{e,}println!`s and others utilizing macros from the `log` crate. One
line might look like `INFO:ofborg::tasks::evaluate: Removing labels:
[]`, while the next might look like `Already: []`.
@grahamc grahamc merged commit 2541d18 into NixOS:released Apr 6, 2020
@cole-h cole-h deleted the logging branch April 6, 2020 15:50
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.

None yet

2 participants