summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-08-22 11:12:36 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-08-22 11:12:36 -0400
commitd3c1f245efb22b45c77561345346469cf6a82ddd (patch)
treed0a403d74c779e8a9f130f5a6b83ad67bd589189 /lib/sqlalchemy/engine/base.py
parent647a28a03e21c70c2195c2a0ea6f6c3e21d72958 (diff)
downloadsqlalchemy-d3c1f245efb22b45c77561345346469cf6a82ddd.tar.gz
- Improvement to multi-param statement logging,
long lists of bound parameter sets will be compressed with an informative indicator of the compression taking place. Exception messages use the same improved formatting. [ticket:2243]
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 3139904d2..e350b5bed 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -24,7 +24,7 @@ import inspect, StringIO, sys, operator
from itertools import izip
from sqlalchemy import exc, schema, util, types, log, interfaces, \
event, events
-from sqlalchemy.sql import expression
+from sqlalchemy.sql import expression, util as sql_util
from sqlalchemy import processors
import collections
@@ -1617,7 +1617,7 @@ class Connection(Connectable):
if self._echo:
self.engine.logger.info(statement)
- self.engine.logger.info("%r", parameters)
+ self.engine.logger.info("%r", sql_util._repr_params(parameters, batches=10))
try:
if context.executemany:
self.dialect.do_executemany(