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

Rework & harmonize aggregator log messages #2009

Merged
merged 11 commits into from
Oct 15, 2024

Commits on Oct 15, 2024

  1. style(aggregator): remove prefixes used in logs

    Since now each logs are tagged with their source component.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    3fcbfd5 View commit details
    Browse the repository at this point in the history
  2. style(aggregator): uniformize function enter logs

    Prefix them with a `>> ` followed by the rust function name (including
    the `_`) so they can be search easily.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    7f36129 View commit details
    Browse the repository at this point in the history
  3. style(aggregator): uniformize http server logs

    Prefix enter function logs with the http verb followed by the route
    path.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2c7e096 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a73c924 View commit details
    Browse the repository at this point in the history
  5. refactor(aggregator): move huge context data away from logs main msg

    And instead add them to a property. This allow to keep the main log
    messages leans while still providing detailed errors info.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9080e21 View commit details
    Browse the repository at this point in the history
  6. refactor(aggregator): move errors away from main state machine logs msg

    And write them to an isolated `error` property.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    e86fa7e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fd24f7d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2b840e2 View commit details
    Browse the repository at this point in the history
  9. refactor(aggregator): general log function for http server route calls

    There is a caveat: payload and query strings can't be logs this way, so
    in this cas a local "function enter" log is done.
    This ensure that those data are logged at the price of routes producing
    two logs for one call.
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    b409dd0 View commit details
    Browse the repository at this point in the history
  10. style: adjustements following PR reviews

    Adjust some logs messages & added properties
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    b5efb83 View commit details
    Browse the repository at this point in the history
  11. chore: upgrade crate versions

    * mithril-aggregator from `0.5.82` to `0.5.83`
    * mithril-signer from `0.2.199` to `0.2.200`
    Alenar committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    20156b9 View commit details
    Browse the repository at this point in the history