Skip to content

Commit

Permalink
[Releng] Add more tracing to debug the marketplace-analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Jun 26, 2021
1 parent 23dda5c commit 854a380
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -270,6 +270,7 @@ public void perform(Map<String, URI> nodeURIs) throws Exception

for (URI listingURI : uris)
{
System.out.println("Loading " + listingURI);
Resource listingResource = resourceSet.getResource(listingURI, true);
EObject documentRoot = listingResource.getContents().get(0);
EObject marketplace = documentRoot.eContents().get(0);
Expand Down Expand Up @@ -330,7 +331,16 @@ public void perform(Map<String, URI> nodeURIs) throws Exception
}
}

ResourceMirror resourceMirror = new ResourceMirror(resourceSet, 50);
ResourceMirror resourceMirror = new ResourceMirror(resourceSet, 50)
{
@Override
protected LoadJob createWorker(URI key, int workerID, boolean secondary)
{
System.out.println("Loading " + key);
return super.createWorker(key, workerID, secondary);
}
};

resourceMirror.perform(nodeQueryURIs);
resourceMirror.dispose();
}
Expand All @@ -342,7 +352,7 @@ public void perform(Map<String, URI> nodeURIs) throws Exception
Set<String> updateURLs = new LinkedHashSet<String>();
for (URI listingURI : nodeQueryURIs)
{
System.err.println("Loading: " + listingURI);
System.out.println("Loading: " + listingURI);
Resource listingResource = resourceSet.getResource(listingURI, true);
EList<EObject> contents = listingResource.getContents();
if (contents.isEmpty())
Expand Down

0 comments on commit 854a380

Please sign in to comment.