mirror of https://github.com/CIRCL/AIL-framework
fix: [logger] rename default logger file + fix log messages
parent
e365555905
commit
1aa63e8a08
|
@ -20,7 +20,7 @@ LOGGING_CONFIG = os.path.join(os.environ['AIL_HOME'], 'configs', 'logging.json')
|
|||
|
||||
def get_config(name=None):
|
||||
if not name:
|
||||
name = 'ail_warning.log'
|
||||
name = 'ail.log'
|
||||
else:
|
||||
name = f'{name}.log'
|
||||
with open(LOGGING_CONFIG, 'r') as f:
|
||||
|
|
|
@ -76,6 +76,7 @@ class CreditCards(AbstractModule):
|
|||
if len(all_cards) > 0:
|
||||
# self.logger.debug(f'All matching {all_cards}')
|
||||
creditcard_set = set()
|
||||
all_cards = set(all_cards)
|
||||
for card in all_cards:
|
||||
print(card)
|
||||
valid_card = self.get_valid_card(card)
|
||||
|
|
|
@ -157,7 +157,7 @@ class Global(AbstractModule):
|
|||
|
||||
# check if file exist
|
||||
if os.path.isfile(filename):
|
||||
self.logger.warning(f'File already exist {filename}')
|
||||
self.logger.info(f'File already exist {filename}')
|
||||
print(f'File already exist {filename}')
|
||||
|
||||
# Check that file already exists but content differs
|
||||
|
|
|
@ -154,7 +154,7 @@ class Mixer(AbstractModule):
|
|||
feeder_name, item_id, gzip64encoded = splitted
|
||||
else:
|
||||
print('Invalid message: not processed')
|
||||
self.logger.debug(f'Invalid Item: {item_id} not processed')
|
||||
self.logger.debug(f'Invalid Item: {splitted[0]} not processed')
|
||||
return None
|
||||
|
||||
# remove absolute path
|
||||
|
|
Loading…
Reference in New Issue