fix: [thehive] fix export logger

This commit is contained in:
terrtia 2024-04-02 09:35:35 +02:00
parent 414b5af277
commit a282354fce
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -57,7 +57,7 @@ class MISP_Thehive_Auto_Push(AbstractModule):
Tag.set_auto_push_status('misp', 'ConnectionError')
else:
Tag.set_auto_push_status('misp', '')
self.logger.info('MISP Pushed:', tag, '->', item_id)
self.logger.info(f'MISP Pushed: {tag} -> {item_id}')
if 'thehive' in self.tags:
if tag in self.tags['thehive']:
@ -68,7 +68,7 @@ class MISP_Thehive_Auto_Push(AbstractModule):
Tag.set_auto_push_status('thehive', 'Request Entity Too Large')
else:
Tag.set_auto_push_status('thehive', '')
self.logger.info('thehive Pushed:', tag, '->', item_id)
self.logger.info(f'thehive Pushed: {tag} -> {item_id}')
if __name__ == "__main__":