From 87da3fc167c27f563a79dde5b85e04df01c16fd6 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:55:37 +0000 Subject: [PATCH] fix: log information when warnings are disabled --- src/pydata_sphinx_theme/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pydata_sphinx_theme/utils.py b/src/pydata_sphinx_theme/utils.py index 94fd7108c..7b834f987 100644 --- a/src/pydata_sphinx_theme/utils.py +++ b/src/pydata_sphinx_theme/utils.py @@ -60,6 +60,8 @@ def maybe_warn(app: Sphinx, msg, *args, **kwargs): should_warn = theme_options.get("surface_warnings", False) if should_warn: SPHINX_LOGGER.warning(msg, *args, **kwargs) + else: + SPHINX_LOGGER.info(msg, *args, **kwargs) def set_secondary_sidebar_items(