def enable_debug(fo):
 from libcloud.common.base import Connection
 from libcloud.utils.loggingconnection import LoggingConnection
 LoggingConnection.log = fo
 Connection.conn_class = LoggingConnection

def enable_debug ( fo ) : from libcloud . common . base import Connection from libcloud . utils . loggingconnection import LoggingConnection LoggingConnection . log = fo Connection . conn_class = LoggingConnection
enable library wide debugging to a file-like object .