Skip to content

Commit

Permalink
decrease logging for generator wrapping
Browse files Browse the repository at this point in the history
no need to show this to end users

Change-Id: I78da6a28a344a7d8d764ff7fd820d80ba7ff4a0d
  • Loading branch information
JJMC89 committed Jan 28, 2023
1 parent 1b8dfab commit 127fb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pywikibot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,8 +1679,8 @@ def run(self) -> None:
.format(self.__class__.__name__))
if not isinstance(self.generator, Generator):
# to provide close() method
pywikibot.info('wrapping {} type to a Generator type'
.format(type(self.generator).__name__))
pywikibot.debug('wrapping {} type to a Generator type'
.format(type(self.generator).__name__))
self.generator = (item for item in self.generator)
try:
for item in self.generator:
Expand Down

0 comments on commit 127fb88

Please sign in to comment.