diff options
author | root <skkaushik212@gmail.com> | 2020-04-16 11:23:01 +0530 |
---|---|---|
committer | root <skkaushik212@gmail.com> | 2020-04-16 11:23:01 +0530 |
commit | d8eec07c5e72646432bb1fd2ddcca8a05728a8f8 (patch) | |
tree | 618a62bff4ea6f2ff7b94a502675ba4e409e949d | |
parent | 6f94e8538f76523a864dbd54f667b0f709945b64 (diff) | |
download | mitmproxy-d8eec07c5e72646432bb1fd2ddcca8a05728a8f8.tar.gz mitmproxy-d8eec07c5e72646432bb1fd2ddcca8a05728a8f8.tar.bz2 mitmproxy-d8eec07c5e72646432bb1fd2ddcca8a05728a8f8.zip |
add message to log
-rw-r--r-- | mitmproxy/tools/_main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/tools/_main.py b/mitmproxy/tools/_main.py index e0424adb..23eb39f0 100644 --- a/mitmproxy/tools/_main.py +++ b/mitmproxy/tools/_main.py @@ -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, |