[Sqlalchemy-tickets] [sqlalchemy] #1583: Consider changing logging level of sqlalchemy.pool.Pool fr
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2009-10-23 15:09:01
|
#1583: Consider changing logging level of sqlalchemy.pool.Pool from .info() to .debug() -------------------------+-------------------------------------------------- Reporter: phrrngtn | Owner: zzzeek Type: enhancement | Status: new Priority: medium | Milestone: Component: pool | Severity: no triage selected yet Keywords: | Status_field: awaiting triage -------------------------+-------------------------------------------------- We use SQLAlchemy for connection pool management and recently made some changes such that log-levels selected from the command-line are passed down to SQLAlchemy. A number of developers would prefer if the "Connection %r checked out from pool" message was issued at debug level rather than info. We can workaround the issue by monkey-patching sqlalchemy.pool.Pool.log as follows: sqlalchemy.pool.Pool.log = lambda self, msg, *args: self.logger.debug(msg, *args) I am pretty agnostic about log-levels but the topic can raise quite a bit of excitement! pjjH -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1583> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |