Remove libsignal logs on console, when log-file is given

This commit is contained in:
AsamK 2023-05-30 13:03:00 +02:00
parent 7499b41d6b
commit c852bd8a85

View file

@ -52,10 +52,12 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
consoleAppender.addFilter(new Filter<>() {
@Override
public FilterReply decide(final ILoggingEvent event) {
return event.getLevel().isGreaterOrEqual(Level.WARN) || (
return !"LibSignal".equals(event.getLoggerName()) && (
event.getLevel().isGreaterOrEqual(Level.WARN) || (
event.getLevel().isGreaterOrEqual(Level.INFO) && event.getLoggerName()
.startsWith("org.asamk")
)
)
? FilterReply.NEUTRAL : FilterReply.DENY;
}