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,9 +52,11 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
|
|||
consoleAppender.addFilter(new Filter<>() {
|
||||
@Override
|
||||
public FilterReply decide(final ILoggingEvent event) {
|
||||
return event.getLevel().isGreaterOrEqual(Level.WARN) || (
|
||||
event.getLevel().isGreaterOrEqual(Level.INFO) && event.getLoggerName()
|
||||
.startsWith("org.asamk")
|
||||
return !"LibSignal".equals(event.getLoggerName()) && (
|
||||
event.getLevel().isGreaterOrEqual(Level.WARN) || (
|
||||
event.getLevel().isGreaterOrEqual(Level.INFO) && event.getLoggerName()
|
||||
.startsWith("org.asamk")
|
||||
)
|
||||
)
|
||||
|
||||
? FilterReply.NEUTRAL : FilterReply.DENY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue