byt3bl33d3r/CrackMapExec

Logging discrepancies ?

Open

#534 aberto em 6 de fev. de 2022

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Python (1.650 forks)batch import
help wanted

Métricas do repositório

Stars
 (7.931 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Hey there, I was working on the source code of the ldap protocol (cme/protocols/ldap.py) and was wondering why some debug logging is made with self.logger.info and why other is made with logging.debug.

https://github.com/byt3bl33d3r/CrackMapExec/blob/6e57e4c3616b361fa44311389af2bbd7bb12839c/cme/protocols/ldap.py#L509

https://github.com/byt3bl33d3r/CrackMapExec/blob/6e57e4c3616b361fa44311389af2bbd7bb12839c/cme/protocols/ldap.py#L533

Is there a best practice to follow, which one should we use?

Guia do colaborador