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:
Kefu Chai 2021-02-12 16:05:06 +08:00
parent 642158fd38
commit 96be45744e

View 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)