RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1757976 - [RFE] Improve stratisd log levels
Summary: [RFE] Improve stratisd log levels
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: stratisd
Version: 8.4
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: mulhern
QA Contact: guazhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-02 20:29 UTC by Dennis Keefe
Modified: 2021-09-06 15:18 UTC (History)
4 users (show)

Fixed In Version: 2.2.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:58:21 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dennis Keefe 2019-10-02 20:29:18 UTC
Add log levels to stratisd from the command-line currently there is only debug
Additional levels might be info, error, warn, trace.


How reproducible:

1. check stratisd man page
2. test stratisd via cli
   # stratisd --info
3. verify logs in journalctl report the default or specified log level for 
   stratisd events.

Comment 3 mulhern 2020-08-19 23:43:13 UTC
See upstream PR: https://github.com/stratis-storage/stratisd/pull/2095.

Comment 4 mulhern 2020-08-19 23:48:18 UTC
Our help text looks like this:

[mulhern@localhost ~/stratis2/stratisd (develop-2.1.0-liminal)]$ ./target/debug/stratisd --help
stratis 2.2.0
Stratis storage management

USAGE:
    stratisd [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
        --sim        Use simulator engine
    -V, --version    Prints version information

OPTIONS:
        --log-level <log-level>    Sets level for generation of log messages. [values: trace, debug, info, warn, error]

which explains what the --log-level flag does.

And the man page:

       --log-level
           Specify the log level for log messages. Only messages with severity
           at or above the level specified will be emitted. If this option is
           omitted, stratisd respects the RUST_LOG environment variable.
           Otherwise, stratisd uses the default log level, which is error.

Comment 6 guazhang@redhat.com 2020-12-24 05:52:14 UTC
Hi


 #man stratisd 

       --log-level
           Specify the log level for log messages. Only messages with severity at or above the level specified will be
           emitted. If this option is omitted, stratisd respects the RUST_LOG environment variable. Otherwise, stratisd
           uses the default log level, which is error.



[root@intel-purley-qat-01 ~]# /usr/libexec/stratisd --help
stratis 2.3.0
Stratis storage management

USAGE:
    stratisd [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
        --sim        Use simulator engine
    -V, --version    Prints version information

OPTIONS:
        --log-level <log-level>    Sets level for generation of log messages. [possible values: trace, debug, info,
                                   warn, error]



test pass with stratis 2.3.0

Comment 11 errata-xmlrpc 2021-05-18 15:58:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (stratis-cli bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1901


Note You need to log in before you can comment on or make changes to this bug.