Fixes #404: Use log.rs and a file-per-thread logger instead of the dbg! macro;

This commit is contained in:
Benjamin Bouvier
2018-07-20 19:14:04 +02:00
committed by Dan Gohman
parent 60c2cad06e
commit a044f58cea
27 changed files with 123 additions and 221 deletions

View File

@@ -67,7 +67,7 @@ impl FuncTranslator {
environ: &mut FE,
) -> WasmResult<()> {
let _tt = timing::wasm_translate_function();
dbg!(
info!(
"translate({} bytes, {}{})",
reader.bytes_remaining(),
func.name,
@@ -265,7 +265,7 @@ mod tests {
trans
.translate(&BODY, &mut ctx.func, &mut runtime.func_env())
.unwrap();
dbg!("{}", ctx.func.display(None));
debug!("{}", ctx.func.display(None));
ctx.verify(runtime.func_env().flags()).unwrap();
}
@@ -296,7 +296,7 @@ mod tests {
trans
.translate(&BODY, &mut ctx.func, &mut runtime.func_env())
.unwrap();
dbg!("{}", ctx.func.display(None));
debug!("{}", ctx.func.display(None));
ctx.verify(runtime.func_env().flags()).unwrap();
}
@@ -335,7 +335,7 @@ mod tests {
trans
.translate(&BODY, &mut ctx.func, &mut runtime.func_env())
.unwrap();
dbg!("{}", ctx.func.display(None));
debug!("{}", ctx.func.display(None));
ctx.verify(runtime.func_env().flags()).unwrap();
}
}