[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:
parent
88c097516a
commit
63f6d4e24e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue