Revision 3264
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
485 | 485 |
debug_msg_ref = [None] |
486 | 486 |
|
487 | 487 |
if db.debug and is_explainable(query): |
488 |
query += '\n'+sql_gen.esc_comment(' EXPLAIN:\n'+explain(db, query)) |
|
488 |
query += '\n'+sql_gen.esc_comment(' EXPLAIN:\n' |
|
489 |
+explain(db, query, log_level=log_level+1)) |
|
489 | 490 |
|
490 | 491 |
try: |
491 | 492 |
try: |
Also available in: Unified diff
sql.py: run_query(): EXPLAIN output: Run explain() with log_level 1 higher than the query's log_level, so that low-level queries' EXPLAIN queries are not output when the queries themselves are not output. This also ensures that only level 2 (major) queries have the EXPLAIN logged (to introduce the query that is being run), to avoid cluttering the log output.