mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [modules] log level
This commit is contained in:
parent
c8ca3ecc58
commit
6c6a3b48e2
3 changed files with 6 additions and 3 deletions
|
@ -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 #
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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__':
|
||||
|
|
Loading…
Reference in a new issue