Skip to content

Commit

Permalink
chore: Drop warning_filter - no-op since MkDocs 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin authored and pawamoy committed May 20, 2023
1 parent 2c05d78 commit c9f99bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/mkdocstrings/loggers.py
Expand Up @@ -7,8 +7,6 @@
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, MutableMapping, Sequence

from mkdocs.utils import warning_filter

try:
from jinja2 import pass_context
except ImportError: # TODO: remove once Jinja2 < 3.1 is dropped
Expand Down Expand Up @@ -135,7 +133,6 @@ def get_logger(name: str) -> LoggerAdapter:
A logger configured to work well in MkDocs.
"""
logger = logging.getLogger(f"mkdocs.plugins.{name}")
logger.addFilter(warning_filter)
return LoggerAdapter(name.split(".", 1)[0], logger)


Expand Down

0 comments on commit c9f99bc

Please sign in to comment.