Skip to content

Commit 5ad2f60

Browse files
committed
hide the 2nd Found xxx plugin file changes log
1 parent 097bd8f commit 5ad2f60

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

auto_plugin_reloader/reloader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ def __scan_and_check(self) -> _CheckOnceResult:
199199
cor.diffs.append(Difference(path, DiffReason.file_added, None))
200200
cor.to_load.append(path)
201201

202-
if (cd_len := len(cor.diffs)) > 0:
203-
self.logger.info('Found {} plugin file changes'.format(cd_len))
204202
return cor
205203

206204
def __check_and_reload_once(self):
@@ -209,6 +207,7 @@ def __check_and_reload_once(self):
209207
if len(check_result.diffs) == 0:
210208
self.scan_result = check_result.scan_result
211209
return
210+
self.logger.info('Found {} plugin file changes'.format(len(check_result.diffs)))
212211

213212
# wait for a while before the double check
214213
if self.__stop_flag.wait(common.config.reload_delay_sec):
@@ -218,7 +217,7 @@ def __check_and_reload_once(self):
218217
check_result = self.__scan_and_check()
219218
self.scan_result = check_result.scan_result
220219
if len(check_result.diffs) == 0:
221-
self.logger.info('no diff in second check')
220+
self.logger.info('Got no diff in second check')
222221
return
223222

224223
self.logger.info(tr('triggered.header'))

0 commit comments

Comments
 (0)