Update yeti.py

add logs
pull/488/head
Sebdraven 2021-04-20 12:21:56 +02:00
parent 507e56228f
commit 37867f89ee
1 changed files with 2 additions and 1 deletions

View File

@ -97,8 +97,9 @@ class Yeti():
else:
value = obs_to_add['value']
attr = self.misp_event.add_attribute(value=value, type=type_attr)
print(links)
print(obs_to_add['id'])
if obs_to_add['id'] in links:
print('%s of %s' % (links[obs_to_add['id']], self.attribute['value']))
attr.comment = '%s of %s' % (links[obs_to_add['id']], self.attribute['value'])
except KeyError:
logging.error('type not found %s' % obs_to_add['type'])