From: Kefu Chai Date: Fri, 12 Feb 2021 08:05:06 +0000 (+0800) Subject: doc: silence warnings from openapi sphinx extension X-Git-Tag: v17.1.0~2986^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=96be45744ee2cc307d970066b6228b3383eae137;p=ceph-ci.git doc: silence warnings from openapi sphinx extension this is a follow-up of 1debd9856565905439ae56f2cfdc16b0549055ec, we should use the logging from sphinx.util instead from Python standard library's logging. Signed-off-by: Kefu Chai --- diff --git a/doc/conf.py b/doc/conf.py index b0dc2da0755..849385a9389 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -3,9 +3,8 @@ import logging import os import shutil import sys - import yaml - +import sphinx.util top_level = \ os.path.dirname( @@ -208,7 +207,7 @@ for c in pybinds: sys.path.insert(0, pybind) # openapi -openapi_logger = logging.getLogger('sphinxcontrib.openapi.openapi30') +openapi_logger = sphinx.util.logging.getLogger('sphinxcontrib.openapi.openapi30') openapi_logger.setLevel(logging.WARNING)