Skip to content

Commit

Permalink
fix: remove deprecation warning on warning_filter (#34)
Browse files Browse the repository at this point in the history
mkdocs is raising the next warning:

DeprecationWarning: warning_filter doesn't do anything since MkDocs 1.2 and will be removed soon. All messages on the `mkdocs` logger get counted automatically.

This PR fixes the issue
  • Loading branch information
lyz-code authored Aug 4, 2023
1 parent a681afa commit 03fb886
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mkdocs_autolinks_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
from collections import defaultdict

from mkdocs.plugins import BasePlugin
from mkdocs.utils import warning_filter

LOG = logging.getLogger("mkdocs.plugins." + __name__)
LOG.addFilter(warning_filter)

# For Regex, match groups are:
# 0: Whole markdown link e.g. [Alt-text](url)
Expand Down

0 comments on commit 03fb886

Please sign in to comment.