mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
add message to log
This commit is contained in:
parent
6f94e8538f
commit
d8eec07c5e
@ -110,6 +110,8 @@ def run(
|
|||||||
master.commands.dump()
|
master.commands.dump()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if extra:
|
if extra:
|
||||||
|
if(args.filter_args):
|
||||||
|
master.log.info(f"Only processing flows that match \"{' & '.join(args.filter_args)}\"")
|
||||||
opts.update(**extra(args))
|
opts.update(**extra(args))
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
@ -154,7 +156,6 @@ def mitmdump(args=None) -> typing.Optional[int]: # pragma: no cover
|
|||||||
def extra(args):
|
def extra(args):
|
||||||
if args.filter_args:
|
if args.filter_args:
|
||||||
v = " ".join(args.filter_args)
|
v = " ".join(args.filter_args)
|
||||||
print(f"Only processing flows that match {v!r}")
|
|
||||||
return dict(
|
return dict(
|
||||||
save_stream_filter=v,
|
save_stream_filter=v,
|
||||||
readfile_filter=v,
|
readfile_filter=v,
|
||||||
|
Loading…
Reference in New Issue
Block a user