Revision 3267
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
484 | 484 |
log_ignore_excs = tuple(log_ignore_excs) |
485 | 485 |
debug_msg_ref = [None] |
486 | 486 |
|
487 |
query = with_explain_comment(db, query, log_level=log_level+1)
|
|
487 |
query = with_explain_comment(db, query) |
|
488 | 488 |
|
489 | 489 |
try: |
490 | 490 |
try: |
... | ... | |
545 | 545 |
''' |
546 | 546 |
For params, see run_query(). |
547 | 547 |
''' |
548 |
kw_args.setdefault('log_level', 3)
|
|
548 |
kw_args.setdefault('log_level', 4)
|
|
549 | 549 |
|
550 | 550 |
return strings.join_lines(values(run_query(db, 'EXPLAIN '+query, |
551 | 551 |
recover=True, cacheable=True, **kw_args))) |
Also available in: Unified diff
sql.py: Run all EXPLAIN queries with log_level=4 since the EXPLAIN information is now usually generated when the query is generated rather than when it's run, so the log_level is not known