Improve debug and trace logging

This commit is contained in:
Tobie Morgan Hitchcock 2022-02-23 13:29:29 +00:00
parent 7f47fad02b
commit 73879706a6
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ impl Executor {
// Process all statements in query
for stm in qry.statements().iter() {
// Log the statement
debug!("{}", stm);
debug!("Executing: {}", stm);
// Reset errors
if self.txn.is_none() {
self.err = None;

View file

@ -68,7 +68,7 @@ impl<'a> Iterator<'a> {
txn: &Transaction,
) -> Result<Value, Error> {
// Log the statement
trace!("Iterating {}", self.stmt);
trace!("Iterating: {}", self.stmt);
// Enable context override
let mut ctx = Context::new(&ctx);
self.run = ctx.add_cancel();