Skip to content
Snippets Groups Projects
Commit dc9c6b49 authored by FoelliX's avatar FoelliX
Browse files

Provide output when loading answers in detailed log mode

parent 9f4204cd
No related branches found
No related tags found
No related merge requests found
......@@ -154,9 +154,13 @@ public class WebScheduler {
this.lock.lock();
this.aqlSystem.getOptions().setTimeout(this.TIME_TO_LOAD_PRECOMPUTED_ANSWERS);
final Object answer;
if (!Log.logIt(Log.DEBUG_DETAILED)) {
Log.setSilence(Log.SILENCE_LEVEL_WARNING);
}
final Collection<Object> candidates = this.aqlSystem.loadAndWait(task.getQuery());
if (!Log.logIt(Log.DEBUG_DETAILED)) {
Log.setSilence(false);
}
if (candidates != null && candidates.iterator().hasNext()) {
answer = candidates.iterator().next();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment