Doc building: Silence automated_steps
The logs of docs for this repo are really large, silence a small part: The logging of automated steps debug output. Change-Id: I3f7991a79bf89f04932bb4501c3f39d0317414e5
This commit is contained in:
parent
a5d120c8c3
commit
1deefcbae8
@ -30,6 +30,8 @@ from ironic.common import driver_factory
|
|||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
# Enable this locally if you need debugging output
|
||||||
|
DEBUG = False
|
||||||
|
|
||||||
def _list_table(add, headers, data, title='', columns=None):
|
def _list_table(add, headers, data, title='', columns=None):
|
||||||
"""Build a list-table directive.
|
"""Build a list-table directive.
|
||||||
@ -85,6 +87,7 @@ def _init_steps_by_driver():
|
|||||||
# the methods of the class.
|
# the methods of the class.
|
||||||
|
|
||||||
for interface_name in sorted(driver_factory.driver_base.ALL_INTERFACES):
|
for interface_name in sorted(driver_factory.driver_base.ALL_INTERFACES):
|
||||||
|
if DEBUG:
|
||||||
LOG.info('[{}] probing available plugins for interface {}'.format(
|
LOG.info('[{}] probing available plugins for interface {}'.format(
|
||||||
__name__, interface_name))
|
__name__, interface_name))
|
||||||
|
|
||||||
@ -110,6 +113,7 @@ def _init_steps_by_driver():
|
|||||||
'interface': interface_name,
|
'interface': interface_name,
|
||||||
'doc': _format_doc(inspect.getdoc(method)),
|
'doc': _format_doc(inspect.getdoc(method)),
|
||||||
}
|
}
|
||||||
|
if DEBUG:
|
||||||
LOG.info('[{}] interface {!r} driver {!r} STEP {}'.format(
|
LOG.info('[{}] interface {!r} driver {!r} STEP {}'.format(
|
||||||
__name__, interface_name, plugin.name, step))
|
__name__, interface_name, plugin.name, step))
|
||||||
steps.append(step)
|
steps.append(step)
|
||||||
|
Loading…
Reference in New Issue
Block a user