mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
doc: silence warnings from openapi sphinx extension
this is a follow-up of 1debd98565
,
we should use the logging from sphinx.util instead from Python standard
library's logging.
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
642158fd38
commit
96be45744e
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user