- attached sa_logging.diff
don't expand format string params - let the logging module do that
Issue #1520
resolved
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.
Comments (5)
-
Account Deleted -
repo owner you forgot:
def log(self, msg, *args): self.logger.info(msg, *args)
in pool.py.
you can run tests with all logging turned on via
nosetests --log-debug=sqlalchemy
.after that the patch is great and in r6962, thanks.
-
Account Deleted (original author: ged) I guess you mean 8b74ddd791783ecbbae21d20da9f988b6ac1fcc6.
-
repo owner oops, thanks !
-
repo owner - removed milestone
Removing milestone: 0.6.0 (automated comment)
- Log in to comment
patch against HEAD