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
|
// Process all statements in query
|
||||||
for stm in qry.statements().iter() {
|
for stm in qry.statements().iter() {
|
||||||
// Log the statement
|
// Log the statement
|
||||||
debug!("{}", stm);
|
debug!("Executing: {}", stm);
|
||||||
// Reset errors
|
// Reset errors
|
||||||
if self.txn.is_none() {
|
if self.txn.is_none() {
|
||||||
self.err = None;
|
self.err = None;
|
||||||
|
|
|
@ -68,7 +68,7 @@ impl<'a> Iterator<'a> {
|
||||||
txn: &Transaction,
|
txn: &Transaction,
|
||||||
) -> Result<Value, Error> {
|
) -> Result<Value, Error> {
|
||||||
// Log the statement
|
// Log the statement
|
||||||
trace!("Iterating {}", self.stmt);
|
trace!("Iterating: {}", self.stmt);
|
||||||
// Enable context override
|
// Enable context override
|
||||||
let mut ctx = Context::new(&ctx);
|
let mut ctx = Context::new(&ctx);
|
||||||
self.run = ctx.add_cancel();
|
self.run = ctx.add_cancel();
|
||||||
|
|
Loading…
Reference in a new issue