Skip to content

Instantly share code, notes, and snippets.

@caiaffa
Created June 6, 2019 11:20
Show Gist options
  • Save caiaffa/0de4d009ed8de8c8fd54a3975134a044 to your computer and use it in GitHub Desktop.
Save caiaffa/0de4d009ed8de8c8fd54a3975134a044 to your computer and use it in GitHub Desktop.
def map_paramiko_log_methods(respective_method, module) -> None:
for each_class in map(module.__dict__.get, module.__all__):
if hasattr(each_class, '_log'):
each_class._log = respective_method
def log_wrapper(*args, **kwargs):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment