From ab3da19eaafbdb64f2ede7a1db659dd2b96b7969 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 17 Dec 2017 15:07:04 +0100 Subject: [PATCH] update evenlog when verbosity changes --- mitmproxy/tools/console/eventlog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mitmproxy/tools/console/eventlog.py b/mitmproxy/tools/console/eventlog.py index a5d058a18..911aeb919 100644 --- a/mitmproxy/tools/console/eventlog.py +++ b/mitmproxy/tools/console/eventlog.py @@ -21,6 +21,7 @@ class EventLog(urwid.ListBox, layoutwidget.LayoutWidget): master.events.sig_add.connect(self.add_event) master.events.sig_refresh.connect(self.refresh_events) + self.master.options.subscribe(self.refresh_events, ["verbosity"]) self.refresh_events() super().__init__(self.walker) @@ -54,7 +55,7 @@ class EventLog(urwid.ListBox, layoutwidget.LayoutWidget): if self.master.options.console_focus_follow: self.walker.set_focus(len(self.walker) - 1) - def refresh_events(self, event_store=None): + def refresh_events(self, *_): self.walker.clear() for event in self.master.events.data: self.add_event(None, event)