Undo accidental commit in -r 311.
authorEric Price <ecprice@mit.edu>
Sat, 29 Mar 2008 21:09:04 +0000 (17:09 -0400)
committerEric Price <ecprice@mit.edu>
Sat, 29 Mar 2008 21:09:04 +0000 (17:09 -0400)
svn path=/trunk/packages/sipb-xen-dns/; revision=312

code/dnsserver.py

index c8dbfa1..0cad87a 100755 (executable)
@@ -26,19 +26,16 @@ 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):