From 96be45744ee2cc307d970066b6228b3383eae137 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 12 Feb 2021 16:05:06 +0800 Subject: [PATCH] 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 --- doc/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.39.5