Skip to content

Commit

Permalink
Blacklist StdErrLogService:
Browse files Browse the repository at this point in the history
Will still log during service discovery, but only if the loglevel is set
to debug.
  • Loading branch information
gab1one committed Jun 21, 2018
1 parent f0eca3a commit b285292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org.knime.knip.core/src/org/knime/knip/core/KNIPGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public class KNIPGateway {

private KNIPGateway() {
// set log level
System.setProperty(LogService.LOG_LEVEL_PROPERTY, "error");
System.setProperty(LogService.LOG_LEVEL_PROPERTY, "warn");
System.setProperty("scijava.plugin.blacklist", ".*StderrLogService");

m_context = new Context(new PluginIndex(
new DefaultPluginFinder(new ResourceAwareClassLoader(getClass().getClassLoader(), getClass()))));
Expand Down

0 comments on commit b285292

Please sign in to comment.