Add debug logging to monkeypatching.

This commit is contained in:
Tommi Virtanen 2011-05-19 10:19:16 -07:00
parent 1ed70d78d8
commit 5bfcec265b

View File

@ -1,5 +1,7 @@
import logging
log = logging.getLogger(__name__)
def patch_001_paramiko_deprecation():
"""
Silence an an unhelpful DeprecationWarning triggered by Paramiko.
@ -53,4 +55,5 @@ def patch_all():
monkeys = [(k,v) for (k,v) in globals().iteritems() if k.startswith('patch_') and k != 'patch_all']
monkeys.sort()
for k,v in monkeys:
log.debug('Patching %s', k)
v()