[IMP] downgrade the logging level to ERROR when the server cannot connect to the database

bzr revid: christophe@cobalt-20081216111636-ahigto4u7l2kueeo
This commit is contained in:
Christophe Simonis 2008-12-16 12:16:36 +01:00
parent 88c097516a
commit 63f6d4e24e
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class PoolManager(object):
logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Connecting to %s' % (db_name,))
PoolManager._pools[db_name] = ConnectionPool(ThreadedConnectionPool(1, PoolManager.maxconn, PoolManager.dsn(db_name)), db_name)
except Exception, e:
logger.notifyChannel('dbpool', netsvc.LOG_CRITICAL, 'Unable to connect to %s: %s' % (db_name, e.message))
logger.notifyChannel('dbpool', netsvc.LOG_ERROR, 'Unable to connect to %s: %s' % (db_name, e.message))
raise
return PoolManager._pools[db_name]
get = staticmethod(get)