[Blends-commit] r3071 - /blends/trunk/webtools/blendstasktools.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Sun Dec 4 07:40:25 UTC 2011


Author: tille
Date: Sun Dec  4 07:40:25 2011
New Revision: 3071

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3071
Log:
More detailed info if UDD connection fails

Modified:
    blends/trunk/webtools/blendstasktools.py

Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=3071&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Sun Dec  4 07:40:25 2011
@@ -266,8 +266,8 @@
 # Define several prepared statements to query UDD
 try:
     conn = psycopg2.connect(host="localhost",port=PORT,user="guest",database="udd")
-except psycopg2.OperationalError:
-    logger.debug("PostgreSQL does not seem to run on port %i .. trying default port %i." % (PORT, DEFAULTPORT))
+except psycopg2.OperationalError, err:
+    logger.warning("PostgreSQL does not seem to run on port %i .. trying default port %i.\n\tMessage: %s" % (PORT, DEFAULTPORT, str(err)))
     try:
         conn = psycopg2.connect(host="localhost",port=DEFAULTPORT,user="guest",database="udd")
     except psycopg2.OperationalError:




More information about the Blends-commit mailing list