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

tille at users.alioth.debian.org tille at users.alioth.debian.org
Sun Dec 4 07:50:16 UTC 2011


Author: tille
Date: Sun Dec  4 07:50:16 2011
New Revision: 3072

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=3072
Log:
logger is not known at the time of connecting to udd

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=3072&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Sun Dec  4 07:50:16 2011
@@ -224,7 +224,7 @@
             pid = int(lf.readline())
             lf.close()
             if pid in psutil.get_pid_list():
-                logger.error("Another process rebuilding web sentinal pages with PID %i is running. Exit." % pid)
+                logger.error("Another process rebuilding web sentinel pages with PID %i is running. Exit." % pid)
                 exit()
             else:
                 logger.warning("Process with PID %i is not running any more but lockfile remained.  Removing %s ..." % (pid, LOCKFILE))
@@ -267,7 +267,8 @@
 try:
     conn = psycopg2.connect(host="localhost",port=PORT,user="guest",database="udd")
 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)))
+    # logger not known at this state: logger.warning
+    print >>stderr, "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