You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/05/05 01:49:01 UTC
svn commit: r941111 - /incubator/libcloud/trunk/libcloud/__init__.py
Author: pquerna
Date: Tue May 4 23:49:01 2010
New Revision: 941111
URL: http://svn.apache.org/viewvc?rev=941111&view=rev
Log:
Document _init_once.
Modified:
incubator/libcloud/trunk/libcloud/__init__.py
Modified: incubator/libcloud/trunk/libcloud/__init__.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/__init__.py?rev=941111&r1=941110&r2=941111&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/__init__.py (original)
+++ incubator/libcloud/trunk/libcloud/__init__.py Tue May 4 23:49:01 2010
@@ -37,6 +37,15 @@ def enable_debug(fo):
ConnectionKey.conn_classes = (LoggingHTTPConnection, LoggingHTTPSConnection)
def _init_once():
+ """
+ Utility function that is ran once on Library import.
+
+ This checks for the LIBCLOUD_DEBUG enviroment variable, which if it exists
+ is where we will log debug information about the provider transports.
+
+ If LIBCLOUD_DEBUG is not a path, C{/tmp/libcloud_debug.log} is used by
+ default.
+ """
import os
d = os.getenv("LIBCLOUD_DEBUG")
if d: