Skip to content

Commit

Permalink
feat(frontend): add trace! to optimizer trace. (#8092)
Browse files Browse the repository at this point in the history
add `trace!` to optimizer trace. Easier debugging for when a frontend optimization step goes wrong.

Approved-By: kwannoel
Approved-By: fuyufjh

Co-Authored-By: jon-chuang <jon-chuang@users.noreply.github.com>
Co-Authored-By: jon-chuang <9093549+jon-chuang@users.noreply.github.com>
  • Loading branch information
jon-chuang and jon-chuang authored Feb 21, 2023
1 parent f11c53b commit 4b6e093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/src/optimizer/optimizer_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ impl OptimizerContext {
return;
}
let mut optimizer_trace = self.optimizer_trace.borrow_mut();
optimizer_trace.push(str.into());
let string = str.into();
tracing::trace!("{}", string);
optimizer_trace.push(string);
optimizer_trace.push("\n".to_string());
}

Expand Down

0 comments on commit 4b6e093

Please sign in to comment.