]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: silence warnings from openapi sphinx extension
authorKefu Chai <kchai@redhat.com>
Fri, 12 Feb 2021 08:05:06 +0000 (16:05 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 13 Feb 2021 02:18:58 +0000 (10:18 +0800)
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 <kchai@redhat.com>
doc/conf.py

index b0dc2da0755a9c28fb3de4bc545bfb8a79dca298..849385a9389229c0b19937e0b83e0e1c204e6780 100644 (file)
@@ -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)