By default, the library is extremely verbose

Bug #1662896 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-redfish
New
Undecided
Unassigned

Bug Description

By default the redfish library is extremely verbose. The most basic usage, attempting to connect() to the Redfish manager will dump more than a 1000 (a thousand) lines of debug code on the screen.

For example, see this log: http://paste.openstack.org/show/598091/ ([updated] apparently paste trucanted it at line 935, but the full log has 1222 lines)

All it does is: 1) Create a virtualenv; 2) Install the dependencies; 3) import and connect to the redfish manager (simulator running locally).

description: updated
description: updated
Revision history for this message
Bruno Cornec (bruno-cornec) wrote :

Until we reached 1.0, it seems appropriate to keep a higher level of verbosity to ease debugging. That default behaviour will be changed for 1.0.

Changed in python-redfish:
milestone: none → 1.0
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

@Bruno,

I disagree that we should wait for 1.0 for this. Hard-coding configuration is never a good solution and, it (should) take(s) 2 lines of code to enable the debug level log in any python library, e.g:

 import logging
 logging.getLogger('redfish').setLevel(logging.DEBUG)

That's it, anyone testing/developing the library will now have access to the debug logs. It just needs to be documented properly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.