trace_dcp: Add SilentEp to shut individual tracers up

Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
Sven Peter 2022-09-27 18:19:19 +02:00 committed by Hector Martin
parent b5e16b2a67
commit f5ed6f89b0

View file

@ -137,6 +137,14 @@ class AFKEp(EP):
self.state.rxbuf_info = (off, size)
self.create_bufs()
class SilentEp(AFKEp):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.state.verbose = 0
def log(self, msg):
pass
def epic_service_cmd(group, cmd):
def f(x):
x.is_cmd = True