mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Remove libsignal logs on console, when log-file is given
This commit is contained in:
parent
7499b41d6b
commit
c852bd8a85
1 changed files with 5 additions and 3 deletions
|
@ -52,10 +52,12 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
|
||||||
consoleAppender.addFilter(new Filter<>() {
|
consoleAppender.addFilter(new Filter<>() {
|
||||||
@Override
|
@Override
|
||||||
public FilterReply decide(final ILoggingEvent event) {
|
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()
|
event.getLevel().isGreaterOrEqual(Level.INFO) && event.getLoggerName()
|
||||||
.startsWith("org.asamk")
|
.startsWith("org.asamk")
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
? FilterReply.NEUTRAL : FilterReply.DENY;
|
? FilterReply.NEUTRAL : FilterReply.DENY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue