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

Switch to slog #201

Merged
merged 3 commits into from
Jan 6, 2024
Merged

Commits on Jan 5, 2024

  1. Switch to log/slog

    This change switches GARM to the new structured logging standard
    library. This will allow us to set log levels and reduce some of
    the log spam.
    
    Given that we introduced new knobs to tweak logging, the number of
    config options for logging now warrants it's own section.
    
    Signed-off-by: Gabriel Adrian Samfira <[email protected]>
    gabriel-samfira committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    e441b6c View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. Append pool_type and pool_mgr info to logs

    Pool managers will have 2 fields identifying which manager generated
    the log line.
    
    In the future, we will add tracking ids in various cases, allowing
    us to track down issues faster.
    
    Signed-off-by: Gabriel Adrian Samfira <[email protected]>
    gabriel-samfira committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    61e97f0 View commit details
    Browse the repository at this point in the history
  2. Use log_file from logging config

    Signed-off-by: Gabriel Adrian Samfira <[email protected]>
    gabriel-samfira committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    d44d64d View commit details
    Browse the repository at this point in the history