Remove unhandled event error

This commit is contained in:
Christophe Bedard 2019-07-26 16:08:49 +02:00
parent f22b45f5d9
commit 9d6b5cb77b

View file

@ -14,7 +14,6 @@
"""Module for event handler.""" """Module for event handler."""
import sys
from typing import Callable from typing import Callable
from typing import Dict from typing import Dict
from typing import List from typing import List
@ -68,5 +67,3 @@ class EventHandler():
cpu_id = get_field(event, 'cpu_id') cpu_id = get_field(event, 'cpu_id')
metadata = EventMetadata(event_name, pid, tid, timestamp, procname, cpu_id) metadata = EventMetadata(event_name, pid, tid, timestamp, procname, cpu_id)
handler_function(event, metadata) handler_function(event, metadata)
else:
print(f'unhandled event name: {event_name}', file=sys.stderr)