Skip to content

Commit

Permalink
refactor: Prefix logs with package name only
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 25, 2022
1 parent 5ae7077 commit 7ea8ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocs_spellcheck/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def get_logger(name: str) -> LoggerAdapter:
"""
logger = logging.getLogger(f"mkdocs.plugins.{name}")
logger.addFilter(warning_filter)
return LoggerAdapter(name, logger)
return LoggerAdapter(name.split(".", 1)[0], logger)

0 comments on commit 7ea8ad9

Please sign in to comment.