Getting rid of the two-layered package structure. This is a temporary commit.
authorEric Price <ecprice@mit.edu>
Sat, 29 Mar 2008 21:05:59 +0000 (17:05 -0400)
committerEric Price <ecprice@mit.edu>
Sat, 29 Mar 2008 21:05:59 +0000 (17:05 -0400)
svn path=/trunk/packages/sipb-xen-dns/; revision=311

code/dnsserver.py

index 0cad87a..c8dbfa1 100755 (executable)
@@ -26,16 +26,19 @@ class DatabaseAuthority(common.ResolverBase):
                                   serial=1, refresh=3600, retry=900,
                                   expire=3600000, minimum=21600, ttl=3600)
     def _lookup(self, name, cls, type, timeout = None):
+        print 'Starting lookup'
         for i in range(3):
             try:
                 value = self._lookup_unsafe(name, cls, type, timeout = None)
             except (psycopg2.OperationalError, sqlalchemy.exceptions.SQLError):
                 if i == 2:
+                    print 'failed'
                     raise
                 print "Reloading database"
                 time.sleep(0.5)
                 continue
             else:
+                print 'done'
                 return value
 
     def _lookup_unsafe(self, name, cls, type, timeout):