byt3bl33d3r/CrackMapExec

Logging discrepancies ?

Open

#534 aperta il 6 feb 2022

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (1650 fork)batch import
help wanted

Metriche repository

Star
 (7931 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor