Skip to content

Commit 1b5843b

Browse files
committed
codegen: Convert logging of module IR generation from debug to trace for less nosiy output
1 parent dc9efe7 commit 1b5843b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/codegen.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl<'ink> CodeGen<'ink> {
343343
let location = (&unit.file).into();
344344

345345
self.debug.finalize();
346-
log::debug!("{}", self.module.to_string());
346+
log::trace!("{}", self.module.to_string());
347347

348348
#[cfg(feature = "verify")]
349349
{
@@ -382,7 +382,7 @@ impl<'ink> GeneratedModule<'ink> {
382382
.create_module_from_ir(buffer)
383383
.map_err(|it| Diagnostic::new(it.to_string_lossy()).with_error_code("E071"))?;
384384

385-
log::debug!("{}", module.to_string());
385+
log::trace!("{}", module.to_string());
386386

387387
Ok(GeneratedModule { module, location: path.into(), engine: RefCell::new(None) })
388388
}
@@ -391,7 +391,7 @@ impl<'ink> GeneratedModule<'ink> {
391391
self.module
392392
.link_in_module(other.module)
393393
.map_err(|it| Diagnostic::new(it.to_string_lossy()).with_error_code("E071"))?;
394-
log::debug!("Merged: {}", self.module.to_string());
394+
log::trace!("Merged: {}", self.module.to_string());
395395

396396
Ok(self)
397397
}
@@ -569,8 +569,8 @@ impl<'ink> GeneratedModule<'ink> {
569569
/// * `codegen` - The generated LLVM module to be persisted
570570
/// * `output` - The location to save the generated ir file
571571
pub fn persist_to_ir(&self, output: PathBuf) -> Result<PathBuf, Diagnostic> {
572-
log::debug!("Output location: {}", output.to_string_lossy());
573-
log::debug!("{}", self.persist_to_string());
572+
log::trace!("Output location: {}", output.to_string_lossy());
573+
log::trace!("{}", self.persist_to_string());
574574

575575
self.module
576576
.print_to_file(&output)

0 commit comments

Comments
 (0)