restrict -e to mitmproxy only (not mitmdump)

This commit is contained in:
Maximilian Hils
2014-03-12 22:13:00 +01:00
parent 14db30080f
commit aefb30ea60
6 changed files with 14 additions and 16 deletions

View File

@@ -15,9 +15,10 @@ class ScriptContext:
Logs an event.
How this is handled depends on the front-end. mitmdump will display
events if the eventlog flag ("-e") was passed. mitmproxy sends
output to the eventlog for display ("v" keyboard shortcut).
events if the v flag ("-e") was passed. mitmproxy sends
output to the eventlog for display ("e" keyboard shortcut).
"""
#FIXME refactor_loglevel
self._master.add_event(*args, **kwargs)
def duplicate_flow(self, f):