From f0ea8ee4f8c30dfa93e932bb0ddc41fc9f7cc629 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 9 Dec 2022 11:35:37 -0500 Subject: [PATCH] logic is backwards --- ldogger/cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldogger/cmd.py b/ldogger/cmd.py index 1284fdb..8922ae6 100644 --- a/ldogger/cmd.py +++ b/ldogger/cmd.py @@ -14,6 +14,7 @@ from ldogger.tailer import Tailer from ldogger.args import get_ldogger_arg_parser, get_sj2l_arg_parser from ldogger.decoder import decode_journald_json +from ldogger.filter_machine import FilterMachine def send_message(args): @@ -104,7 +105,7 @@ def just_tail_journalctl(args): while not t.done: while line := t.get(): - if fm(line): + if not fm(line): decode_journald_json(args, line) send_message(args) time.sleep(0.5 if args.verbose else 0.1)