Improve debug and trace logging
This commit is contained in:
parent
7f47fad02b
commit
73879706a6
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue