add message to log

This commit is contained in:
root 2020-04-16 11:23:01 +05:30
parent 6f94e8538f
commit d8eec07c5e

View File

@ -110,6 +110,8 @@ def run(
master.commands.dump()
sys.exit(0)
if extra:
if(args.filter_args):
master.log.info(f"Only processing flows that match \"{' & '.join(args.filter_args)}\"")
opts.update(**extra(args))
loop = asyncio.get_event_loop()
@ -154,7 +156,6 @@ def mitmdump(args=None) -> typing.Optional[int]: # pragma: no cover
def extra(args):
if args.filter_args:
v = " ".join(args.filter_args)
print(f"Only processing flows that match {v!r}")
return dict(
save_stream_filter=v,
readfile_filter=v,