Commit 0d9be5b2 authored by Michael Ritter's avatar Michael Ritter

Less verbose logging for TokenImportStatus

parent 5d2bad35
......@@ -26,19 +26,16 @@ public class ImportStatusServlet extends EntityManagerServlet {
long id = getParameter(request, ACTIVE_PARAM, -1);
if (id > 0) {
LOG.info("Querying for collection " + id);
EntityManager manager = PersistUtil.getEntityManager();
Collection collection = manager.find(Collection.class, id);
if (collection != null) {
LOG.info("Found collection " + id);
KSFuture<IngestSupervisor> ksSupervisor = pool.getCache().get(collection);
if (ksSupervisor != null) {
request.setAttribute(ACTIVE_PARAM, ksSupervisor.getKnownResult());
}
} else {
LOG.info("Unable to get collection " + id);
LOG.debug("Collection " + id + " does not exist");
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment