Skip to content

Commit 3a10dec

Browse files
committed
chore: Warning log
1 parent 6a89fdc commit 3a10dec

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/sphinxnotes/recentupdate/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,13 @@ def _context(self, count: int) -> dict[str, any]:
157157
if prev is None:
158158
break
159159

160-
matches = [x in cur.message for x in self.config.recentupdate_exclude_commit]
160+
matches = [
161+
x in cur.message for x in self.config.recentupdate_exclude_commit
162+
]
161163
if any(matches):
162-
logger.debug(f'Skip commit {cur.hexsha}: excluded by recentupdate_exclude_commit confval')
164+
logger.debug(
165+
f'Skip commit {cur.hexsha}: excluded by recentupdate_exclude_commit confval'
166+
)
163167
cur = prev
164168
continue
165169

@@ -203,7 +207,9 @@ def _context(self, count: int) -> dict[str, any]:
203207
cur = prev
204208
n += 1
205209

206-
logger.debug(f'Intend to get recent {count} commits, eventually get {n}')
210+
logger.warning(
211+
f'[recentupdate] Intend to get recent {count} commits, eventually get {n}'
212+
)
207213

208214
return res
209215

0 commit comments

Comments
 (0)