Skip to content

Commit

Permalink
refactor: Prefix logs with the package name only
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 6, 2022
1 parent f62b23d commit 6c2b734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocstrings/loggers.py
Expand Up @@ -122,7 +122,7 @@ 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)


def get_template_logger() -> TemplateLogger:
Expand Down

0 comments on commit 6c2b734

Please sign in to comment.