Skip to content

Commit 209a886

Browse files
committed
Add mkdocs warning logger
1 parent e47d604 commit 209a886

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkdocs_git_authors_plugin/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from .git.repo import Repo
99
from mkdocs_git_authors_plugin.ci import raise_ci_warnings
1010

11+
logger = logging.getLogger("mkdocs.plugins")
1112

1213
class GitAuthorsPlugin(BasePlugin):
1314
config_scheme = (
@@ -50,7 +51,7 @@ def on_config(self, config, **kwargs):
5051
except GitCommandError:
5152
if self.config["fallback_to_empty"]:
5253
self._fallback = True
53-
logging.warning(
54+
logger.warning(
5455
"[git-authors-plugin] Unable to find a git directory and/or git is not installed."
5556
" Option 'fallback_to_empty' set to 'true': Falling back to empty authors list"
5657
)

0 commit comments

Comments
 (0)