Skip to content
Snippets Groups Projects
Commit bf43364a authored by jkerdreu's avatar jkerdreu
Browse files

Fix dev_type filtering in log

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2803 b32b6428-25c9-4566-ad07-03861ab6144f
parent bad8e955
No related branches found
No related tags found
No related merge requests found
......@@ -441,15 +441,18 @@ def log():
eng = helper.setup_engine()
target = helper.get_filter_address()
type_ = helper.get_filter_devtype()
dev_type = helper.get_filter_devtype()
def log_callback(msg):
if msg.is_alive() or (msg.action in HIDE_ACTION):
return
# address filter
if (target!=None):
if (target not in msg.targets + [msg.source,]):
return
# FIXME: check if dev_type is Ok.
# device type filter
if (match_dev_type(msg,dev_type) == False):
return
color = Colors.DEFAULT
if msg.is_attributes_change(): color = Colors.ATTRIBUTS
elif msg.is_notify(): color=Colors.NOTIFY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment