mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
Add debug logging to monkeypatching.
This commit is contained in:
parent
1ed70d78d8
commit
5bfcec265b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user