#1224 --debug option for sss_debuglevel doesn't work.

Created 4 years ago by sgallagh
Modified 3 days ago

https://bugzilla.redhat.com/show_bug.cgi?id=799039 (Red Hat Enterprise Linux 6)

+++ This bug was initially created as a clone of Bug #799031 +++

Description of problem:
The Debug level for sss_debuglevel cannot be set with the option --debug

Version-Release number of selected component (if applicable):
[root@fedora-client sss_tools]# rpm -q sssd
sssd-1.8.1-0.20120228T2018Zgit751b121.fc16.i686



How reproducible: Always


Steps to Reproduce:
1. Run sss_debuglevel --debug=1
2. sss_debuglevel --debug=0x0020


Actual results:
[root@fedora-client sss_tools]# sss_debuglevel --debug=1
Usage: sss_debuglevel [-?] [-?|--help] [--usage] [--debug=INT] [-c|--config
STRING] DEBUG_LEVEL_TO_SET
Specify debug level you want to set
[root@fedora-client sss_tools]# sss_debuglevel --debug=0x0020
Usage: sss_debuglevel [-?] [-?|--help] [--usage] [--debug=INT] [-c|--config
STRING] DEBUG_LEVEL_TO_SET
Specify debug level you want to set


Expected results:
The Debug Level should be set accordingly

Additional info:

Fields changed

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
patch: => 0
tests: => 0
testsupdated: => 0
upgrade: => 0

It is not a bug but misunderstanding. The --debug option specifies what level should apply to sss_debuglevel.

The level we want to set is a free parameter without an option name.

The proper usage is:

  • sss_debuglevel 1

  • sss_debuglevel 0x0020

An to enable all debug message in the tool and set 0x0020 in sssd:

  • sss_debuglevel --debug 0xfff0 0x0020

_comment0: It is not a bug but misunderstanding. The --debug option specifies what level should apply to sss_debuglevel.

The level we want to set is a free parameter without an option name.

The proper usage is:
sss_debuglevel 1
sss_debuglevel 0x0020

An to enable all debug message in the tool and set 0x0020 in sssd:
sss_debuglevel --debug 0xfff0 0x0020 => 1330686045727321

Replying to [comment:3 pbrezina]:

It is not a bug but misunderstanding. The --debug option specifies what level should apply to sss_debuglevel.

Neither the {{{--help}}} nor manpage suggests this. I wasn't aware that's how it worked either (and it's inconsistent with our other tools, which have --debug as a hidden option using {{{POPT_ARGFLAG_DOC_HIDDEN}}}.

Please hide the option from the {{{--help}}}

owner: somebody => pbrezina

Fixed by:
- db6aabf673b5d4d12af00ab1d0ab8a56d7dc7aee (master)
- 9073710deeca6eb9ae55eac9f7a8f6d560af1f9d (sssd-1-8)

patch: 0 => 1
resolution: => fixed
status: new => closed

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.8.1 (LTM)

3 days ago

Metadata Update from @sgallagh:
- Issue assigned to pbrezina
- Issue set to the milestone: SSSD 1.8.1 (LTM)

Login to comment on this ticket.

defect

sss_tools

1.8.0

0

1

https://bugzilla.redhat.com/show_bug.cgi?id=799039, https://bugzilla.redhat.com/show_bug.cgi?id=799031

cancel