[Sqlalchemy-tickets] [sqlalchemy] #1520: don't expand format string params - let the logging module
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2009-08-26 14:42:42
|
#1520: don't expand format string params - let the logging module do that -------------------------+-------------------------------------------------- Reporter: guest | Owner: zzzeek Type: enhancement | Status: new Priority: low | Milestone: Component: (none) | Severity: no triage selected yet Keywords: | Status_field: awaiting triage -------------------------+-------------------------------------------------- Instead of expanding format strings like this: repr(..), str(...), or "foo %s" % (arg,) rely on the logging module to do that for us. Bonuses include slightly less code and the format strings aren't expanded unless the log line should be generated - good for performance, too. -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1520> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |