summaryrefslogtreecommitdiff
path: root/doc/source/_exts
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-05-14 18:22:22 +0200
committerAndreas Jaeger <aj@suse.com>2020-05-14 18:23:05 +0200
commit1deefcbae8c9077f3b0bf5b09e190a736f040c46 (patch)
tree19e62609dbf2ba712dd76db7a0bf94a9ef73f786 /doc/source/_exts
parenta5d120c8c3e78f93ae5162607d067a707d2928b8 (diff)
downloadironic-1deefcbae8c9077f3b0bf5b09e190a736f040c46.tar.gz
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
Diffstat (limited to 'doc/source/_exts')
-rw-r--r--doc/source/_exts/automated_steps.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/source/_exts/automated_steps.py b/doc/source/_exts/automated_steps.py
index 4cf434974..ff226ec2f 100644
--- a/doc/source/_exts/automated_steps.py
+++ b/doc/source/_exts/automated_steps.py
@@ -30,6 +30,8 @@ from ironic.common import driver_factory
LOG = logging.getLogger(__name__)
+# Enable this locally if you need debugging output
+DEBUG = False
def _list_table(add, headers, data, title='', columns=None):
"""Build a list-table directive.
@@ -85,8 +87,9 @@ def _init_steps_by_driver():
# the methods of the class.
for interface_name in sorted(driver_factory.driver_base.ALL_INTERFACES):
- LOG.info('[{}] probing available plugins for interface {}'.format(
- __name__, interface_name))
+ if DEBUG:
+ LOG.info('[{}] probing available plugins for interface {}'.format(
+ __name__, interface_name))
loader = stevedore.ExtensionManager(
'ironic.hardware.interfaces.{}'.format(interface_name),
@@ -110,8 +113,9 @@ def _init_steps_by_driver():
'interface': interface_name,
'doc': _format_doc(inspect.getdoc(method)),
}
- LOG.info('[{}] interface {!r} driver {!r} STEP {}'.format(
- __name__, interface_name, plugin.name, step))
+ if DEBUG:
+ LOG.info('[{}] interface {!r} driver {!r} STEP {}'.format(
+ __name__, interface_name, plugin.name, step))
steps.append(step)
if steps: