File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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' ))
You can’t perform that action at this time.
0 commit comments