2929import  com .google .idea .blaze .base .sync .status .BlazeSyncStatus ;
3030import  com .intellij .openapi .Disposable ;
3131import  com .intellij .openapi .application .ApplicationManager ;
32+ import  com .intellij .openapi .diagnostic .Logger ;
3233import  com .intellij .openapi .project .Project ;
3334import  com .intellij .openapi .vfs .AsyncFileListener ;
3435import  com .intellij .openapi .vfs .VirtualFile ;
5152/** {@link AsyncFileListener} for monitoring project changes requiring a re-sync */ 
5253public  class  QuerySyncAsyncFileListener  implements  AsyncFileListener  {
5354
55+   private  static  final  Logger  logger  = Logger .getInstance (QuerySyncAsyncFileListener .class );
56+ 
5457  private  final  Project  project ;
5558  private  final  SyncRequester  syncRequester ;
5659
@@ -200,6 +203,7 @@ public void afterQuerySync(Project project, BlazeContext context) {
200203
201204    @ Override 
202205    public  void  requestSync (@ NotNull  Collection <VirtualFile > files ) {
206+       logger .info (String .format ("Putting %d files into sync queue" , files .size ()));
203207      unprocessedChanges .addAll (files );
204208      if  (changePending .compareAndSet (false , true )) {
205209        if  (!BlazeSyncStatus .getInstance (project ).syncInProgress ()) {
@@ -213,6 +217,7 @@ public void requestSync(@NotNull Collection<VirtualFile> files) {
213217    }
214218
215219    private  void  requestSyncInternal (ImmutableCollection <VirtualFile > files ) {
220+       logger .info (String .format ("Requesting sync of %d files" , files .size ()));
216221      QuerySyncManager .getInstance (project )
217222          .deltaSync (
218223              QuerySyncActionStatsScope .createForFiles (QuerySyncAsyncFileListener .class , null , files ),
0 commit comments