Commented out the printing in recreate_tables. Should think about undertaking an effort to remove all printing since everything important is logged anyways

This commit is contained in:
Chaz Littlejohn 2011-04-06 03:43:56 +00:00
parent d7ed15bcfe
commit b7b93408b0

View File

@ -524,12 +524,12 @@ class Database:
except:# _mysql_exceptions.ProgrammingError: except:# _mysql_exceptions.ProgrammingError:
if database != ":memory:": if database != ":memory:":
if create: if create:
print _("Failed to read settings table - recreating tables") #print _("Failed to read settings table - recreating tables")
log.info(_("Failed to read settings table - recreating tables")) log.info(_("Failed to read settings table - recreating tables"))
self.recreate_tables() self.recreate_tables()
self.check_version(database=database, create=False) self.check_version(database=database, create=False)
else: else:
print _("Failed to read settings table - please recreate tables") #print _("Failed to read settings table - please recreate tables")
log.info(_("Failed to read settings table - please recreate tables")) log.info(_("Failed to read settings table - please recreate tables"))
self.wrongDbVersion = True self.wrongDbVersion = True
else: else:
@ -1250,7 +1250,7 @@ class Database:
self.createAllIndexes() self.createAllIndexes()
self.commit() self.commit()
self.get_sites() self.get_sites()
print _("Finished recreating tables") #print _("Finished recreating tables")
log.info(_("Finished recreating tables")) log.info(_("Finished recreating tables"))
#end def recreate_tables #end def recreate_tables