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

Enhance logs construction and usage in aggregator #2002

Merged
merged 12 commits into from
Oct 14, 2024

Commits on Oct 11, 2024

  1. refactor(aggregator): simplify mockall::automock imports

    Use full path instead of needing a use gated by an `cfg(test)` that add
    noises with the other imports.
    Alenar committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3fdbddf View commit details
    Browse the repository at this point in the history
  2. feat(common): new logger extension to create logger with given name

    To create child logger when there's no component to hold them (such
    as the http server in aggregator).
    Alenar committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d40dd6b View commit details
    Browse the repository at this point in the history
  3. refactor(aggregator): add a child logger to all components that use logs

    * Tagged with the component name.
    * Existing logs are still using `slog_scope` but this prepare its
      removal.
    Alenar committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b153b5f View commit details
    Browse the repository at this point in the history
  4. refactor(aggregator): use dedicated logger instead of slog_scope in…

    … http server
    
    To tag the logs with a source so they may be easily filtered.
    Alenar committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    00c1e1a View commit details
    Browse the repository at this point in the history
  5. refactor(aggregator): use dedicated logger instead of slog_scope in…

    … services & tools
    
    To tag the logs with a source so they may be easily filtered.
    Alenar committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    24f7381 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3581261 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    1111de0 View commit details
    Browse the repository at this point in the history
  2. test(aggregator): use simpler method to build sqlite connection in `c…

    …ertificate_repository`
    Alenar committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    e71d930 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2fc819 View commit details
    Browse the repository at this point in the history
  4. chore: remove slog_scope from aggregator main dependencies

    It's still a `dev-dependencies` as it is useful for integration tests.
    Alenar committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    1c06fed View commit details
    Browse the repository at this point in the history
  5. style(aggregator): set application name in log to mithril-aggregator

    Instead of the default `slog-rs`.
    Alenar committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d1a1ee5 View commit details
    Browse the repository at this point in the history
  6. chore: upgrade crate versions

    * mithril-aggregator from `0.5.80` to `0.5.81`
    * mithril-common from `0.4.67` to `0.4.68`
    Alenar committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    01bf63f View commit details
    Browse the repository at this point in the history