aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/master.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-01 00:04:05 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-08 17:55:22 +0100
commitc2a130dcedcb69c35d8bb7432fa65e6542e6de19 (patch)
treeaabc78e440ff7f213b561e7649916788562e354a /mitmproxy/tools/web/master.py
parent85476d9915f23fc45e64b5242e804623f50cd20a (diff)
downloadmitmproxy-c2a130dcedcb69c35d8bb7432fa65e6542e6de19.tar.gz
mitmproxy-c2a130dcedcb69c35d8bb7432fa65e6542e6de19.tar.bz2
mitmproxy-c2a130dcedcb69c35d8bb7432fa65e6542e6de19.zip
web: simplify flow storage
Diffstat (limited to 'mitmproxy/tools/web/master.py')
-rw-r--r--mitmproxy/tools/web/master.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py
index 605cdf18..e35815ad 100644
--- a/mitmproxy/tools/web/master.py
+++ b/mitmproxy/tools/web/master.py
@@ -21,7 +21,8 @@ class Stop(Exception):
class _WebState():
def add_log(self, e, level):
- self._last_event_id += 1
+ # server-side log ids are odd
+ self._last_event_id += 2
entry = {
"id": self._last_event_id,
"message": e,