We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbdeab commit 5c47258Copy full SHA for 5c47258
mkdocs_git_authors_plugin/util.py
@@ -1,4 +1,5 @@
1
from git import Repo
2
+import logging
3
from pathlib import Path
4
5
class Util:
@@ -28,12 +29,12 @@ def get_authors(self, path):
28
29
try:
30
blame = self.repo.blame('HEAD',path)
31
except:
- print("WARNING - %s has no commits" % path)
32
+ logging.warning("%s has no commits" % path)
33
self._authors[path] = False
34
return []
35
36
if len(Path(path).read_text()) == 0:
- print("WARNING - %s has no lines" % path)
37
+ logging.warning("%s has no lines" % path)
38
39
40
0 commit comments