diff --git a/monkey/infection_monkey/credential_repository/add_credentials_from_event.py b/monkey/infection_monkey/credential_repository/add_credentials_from_event.py index 123774581..77efc39ab 100644 --- a/monkey/infection_monkey/credential_repository/add_credentials_from_event.py +++ b/monkey/infection_monkey/credential_repository/add_credentials_from_event.py @@ -1,11 +1,16 @@ +import logging + from common.events import CredentialsStolenEvent from . import IPropagationCredentialsRepository +logger = logging.getLogger(__name__) + class add_credentials_from_event_to_propagation_credentials_repository: def __init__(self, credentials_repository: IPropagationCredentialsRepository): self._credentials_repository = credentials_repository def __call__(self, event: CredentialsStolenEvent): + logger.debug(f"Adding {len(event.stolen_credentials)} to the credentials repository") self._credentials_repository.add_credentials(event.stolen_credentials)