Skip to content

Commit

Permalink
fix: log information when warnings are disabled (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Jan 4, 2024
1 parent 86a5b6c commit 287382d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pydata_sphinx_theme/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 287382d

Please sign in to comment.