Skip to content

Commit 040b3c0

Browse files
12rambauivanov
authored andcommitted
fix: log information when warnings are disabled (pydata#1617)
1 parent 4fc9253 commit 040b3c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pydata_sphinx_theme/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def maybe_warn(app: Sphinx, msg, *args, **kwargs):
6060
should_warn = theme_options.get("surface_warnings", False)
6161
if should_warn:
6262
SPHINX_LOGGER.warning(msg, *args, **kwargs)
63+
else:
64+
SPHINX_LOGGER.info(msg, *args, **kwargs)
6365

6466

6567
def set_secondary_sidebar_items(

0 commit comments

Comments
 (0)