Skip to content

Commit 287382d

Browse files
authored
fix: log information when warnings are disabled (#1617)
1 parent 86a5b6c commit 287382d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pydata_sphinx_theme/utils.py

Lines changed: 2 additions & 0 deletions
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)