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

log: Introduce nvme_get_logging_level() #782

Closed
wants to merge 2 commits into from

Commits on Feb 15, 2024

  1. log: Introduce nvme_get_logging_level()

    This is essentially a getter for nvme_init_logging() since
    nvme_root_t is an opaque struct. Takes optional pointer
    to bool args to retrieve PID and timestamp logging values.
    
    Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
    tbzatek committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    0ca8e70 View commit details
    Browse the repository at this point in the history
  2. log: Respect DEFAULT_LOGLEVEL on uninitialized logging

    When logging has not been initialized and no root available,
    logging via nvme_msg() would just print everything. Better
    to check against DEFAULT_LOGLEVEL in such cases.
    
    Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
    tbzatek committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    06b34df View commit details
    Browse the repository at this point in the history