diff --git a/bin/modules/Categ.py b/bin/modules/Categ.py index f1cfe57f..60517d64 100755 --- a/bin/modules/Categ.py +++ b/bin/modules/Categ.py @@ -100,11 +100,12 @@ class Categ(AbstractModule): print(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()}') if r_result: return categ_found + if __name__ == '__main__': # SCRIPT PARSER # diff --git a/bin/modules/Mail.py b/bin/modules/Mail.py index 10d55877..7eb25084 100755 --- a/bin/modules/Mail.py +++ b/bin/modules/Mail.py @@ -179,7 +179,7 @@ class Mail(AbstractModule): # Tags msg = f'infoleak:automatic-detection="mail";{item_id}' self.add_message_to_queue(msg, 'Tags') - else: + elif num_valid_email > 0: self.redis_logger.info(msg) diff --git a/bin/modules/Urls.py b/bin/modules/Urls.py index b33f3250..33bd8250 100755 --- a/bin/modules/Urls.py +++ b/bin/modules/Urls.py @@ -86,7 +86,9 @@ class Urls(AbstractModule): if len(l_urls) > 0: 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__':