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

Unit Conversion and Logging Tuneup #438

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Conversation

mattw-nws
Copy link
Contributor

@mattw-nws mattw-nws commented Aug 24, 2022

Improves performance in unconvertable scenarios and cleans up logging and -DQUIET compliance.

[Short description explaining the high-level reason for the pull request]

Additions

Removals

Changes

  • Conversions between incompatible units now have a nullptr "cached"... so the warning will happen faster without parsing the units strings again.
  • Compressed unit conversion failure warnings into one line (from three), reducing effective noise level
  • Unit conversion failures now explicitly say WARN: and do not include the word "error"... hopefully alleviating some confusion going forward.
  • Caught a few more unit conversion messages that didn't respect -DQUIET
  • Small tweak to non-units-related log messages that should be squelchable with -DQUIET.

Testing

  1. Re-ran all existing tests

Screenshots

Notes

Todos

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (link if applicable)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist (automated report can be put here)

Target Environment support

  • Linux

@mattw-nws mattw-nws requested a review from donaldwj August 24, 2022 20:56
@mattw-nws mattw-nws marked this pull request as ready for review August 24, 2022 21:14
@mattw-nws
Copy link
Contributor Author

OH. Curious. I did not realize that this commit picked up the new TOPMODEL submodule pin. Hmm. I'm not even sure how to roll that back.

donaldwj
donaldwj previously approved these changes Sep 9, 2022
@mattw-nws
Copy link
Contributor Author

Very strange behavior in this PR where the checks are not running... going to merge anyway because this same code passed tests previously... lets see if the post-merge tests run...?

@mattw-nws mattw-nws merged commit 80efd45 into master Oct 5, 2022
@mattw-nws mattw-nws deleted the units-logging-tuneup branch October 5, 2022 16:24
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.

3 participants