Revision 5890
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
618 | 618 |
if recover and not db.is_cached(query): |
619 | 619 |
return with_savepoint(db, run) |
620 | 620 |
else: return run() # don't need savepoint if cached |
621 |
except Exception, e: parse_exception(db, e, recover) |
|
621 |
except Exception, e: |
|
622 |
# Give failed EXPLAIN approximately the log_level of its query |
|
623 |
if query.startswith('EXPLAIN'): log_level -= 1 |
|
624 |
|
|
625 |
parse_exception(db, e, recover) |
|
622 | 626 |
except log_ignore_excs: |
623 | 627 |
log_level += 2 |
624 | 628 |
raise |
Also available in: Unified diff
sql.py: run_query(): Give failed EXPLAIN approximately the log_level of its query, so that queries which produce an error in the EXPLAIN before the query itself is even run will still be logged