Skip to content

Commit bffdf2b

Browse files
committed
Replace println with log statements
1 parent f37b4ae commit bffdf2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/extractor/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn main() -> anyhow::Result<()> {
4747
.ok(),
4848
..Default::default()
4949
};
50-
let progress = |t| (println!("progress: {}", t));
50+
let progress = |t| (log::info!("progress: {}", t));
5151
let load_config = LoadCargoConfig {
5252
load_out_dirs_from_check: true,
5353
with_proc_macro_server: ProcMacroServerChoice::Sysroot,

rust/extractor/src/translate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ impl CrateTranslator<'_> {
938938
let body = if self.extract_dependencies || self.krate.origin(self.db).is_local() {
939939
let (body, source_map) = self.db.body_with_source_map(def.into());
940940
let txt = body.pretty_print(self.db, def.into(), Edition::Edition2021);
941-
println!("{}", &txt);
941+
log::trace!("{}", &txt);
942942
self.emit_expr(body.body_expr, &body, &source_map)
943943
} else {
944944
self.trap.emit(generated::MissingExpr {

0 commit comments

Comments
 (0)