diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2008-12-17 01:03:57 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2008-12-17 01:03:57 +0530 |
| commit | 29f53e1fb80666e67bead6f55220ca372531cd03 (patch) | |
| tree | 1e207422ae614a986f9f77ee231f22071e93c271 /bin/sql_db.py | |
| parent | bc48f7a2d6f315171fcb914863ae7e269ef7a41c (diff) | |
| parent | 3ee905239b37c0cf86ae7cb3917f4d7765fa9e95 (diff) | |
merting from the trunk and improvement in the form rng
bzr revid: mga@tinyerp.com-20081216193357-vblydydhp7f9ljdo
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index 3f4e23cc392..eef2a52e92b 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -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) |
