Skip to content

Commit

Permalink
logic is backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Dec 9, 2022
1 parent 78a9301 commit f0ea8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ldogger/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f0ea8ee

Please sign in to comment.