fix: [modules] log level

This commit is contained in:
Terrtia 2023-04-21 14:53:33 +02:00
parent c8ca3ecc58
commit 6c6a3b48e2
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
3 changed files with 6 additions and 3 deletions

View file

@ -100,11 +100,12 @@ class Categ(AbstractModule):
print(msg, categ) print(msg, categ)
self.add_message_to_queue(msg, categ) self.add_message_to_queue(msg, categ)
self.redis_logger.info( self.redis_logger.debug(
f'Categ;{item.get_source()};{item.get_date()};{item.get_basename()};Detected {lenfound} as {categ};{item.get_id()}') f'Categ;{item.get_source()};{item.get_date()};{item.get_basename()};Detected {lenfound} as {categ};{item.get_id()}')
if r_result: if r_result:
return categ_found return categ_found
if __name__ == '__main__': if __name__ == '__main__':
# SCRIPT PARSER # # SCRIPT PARSER #

View file

@ -179,7 +179,7 @@ class Mail(AbstractModule):
# Tags # Tags
msg = f'infoleak:automatic-detection="mail";{item_id}' msg = f'infoleak:automatic-detection="mail";{item_id}'
self.add_message_to_queue(msg, 'Tags') self.add_message_to_queue(msg, 'Tags')
else: elif num_valid_email > 0:
self.redis_logger.info(msg) self.redis_logger.info(msg)

View file

@ -86,7 +86,9 @@ class Urls(AbstractModule):
if len(l_urls) > 0: if len(l_urls) > 0:
to_print = f'Urls;{item.get_source()};{item.get_date()};{item.get_basename()};' to_print = f'Urls;{item.get_source()};{item.get_date()};{item.get_basename()};'
self.redis_logger.info(f'{to_print}Detected {len(l_urls)} URL;{item.get_id()}') print(to_print)
# .debug ???
# self.redis_logger.info(f'{to_print}Detected {len(l_urls)} URL;{item.get_id()}')
if __name__ == '__main__': if __name__ == '__main__':