diff options
| author | Christophe Simonis <christophe@cobalt> | 2008-12-16 12:16:36 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@cobalt> | 2008-12-16 12:16:36 +0100 |
| commit | 63f6d4e24ede40f11b7af29d73d6a20cf17edd17 (patch) | |
| tree | bcdbfb6d0315622544b121f7eeef76eb04edb9be /bin/sql_db.py | |
| parent | 88c097516a5e5af5acee4655a276e5bf122b4051 (diff) | |
[IMP] downgrade the logging level to ERROR when the server cannot connect to the database
bzr revid: christophe@cobalt-20081216111636-ahigto4u7l2kueeo
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) |
