Improve logging of sql queries a bit.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 10 Mar 2012 21:34:06 +0000 (22:34 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 10 Mar 2012 21:48:24 +0000 (22:48 +0100)
commit193e0f534621f0f50f1fa05a3fc63e73ff0513e8
tree135e780f07097740e58ee0cfad1426d414dfbf23
parent3c7d451c71c1411e23cc16d6001394eb1a74dc62
Improve logging of sql queries a bit.

Docs:
  http://docs.sqlalchemy.org/en/latest/core/engines.html#configuring-logging

So for an application utilizing python logging for real
(and MediaGoblin should) the rule is:
- Don't use echo=True,
- but reconfigure the appropiate loggers' level.

So replaced the echo=True by a line to reconfigure the
appropiate logger to achieve the same effect.

This still dumps whole bloats of SQL queries into the main
log, but at least they're not duped any more.
mediagoblin/db/sql/open.py