Only print stack trace if log level is set to debug.
@@ -149,9 +149,11 @@ public class SparqlMatcherActor extends UntypedActor {
log.info(String.format("Caught exception when processing %s event %s. More info on loglevel 'debug'",
eventTypeForLogging, uriForLogging.orElse("[no uri available]")));
log.debug("caught exception", e);
+ if(log.isDebugEnabled()){
e.printStackTrace();
}
}
+ }
protected void processInactiveNeedEvent(NeedEvent needEvent) throws IOException, JsonLdError {
log.info("Received inactive need.");
