feat(export): allow trace levels to be controlled

This commit is contained in:
rvcas
2024-04-04 15:08:12 -04:00
committed by Lucas
parent 79ccc55499
commit aa3896e92a
2 changed files with 33 additions and 3 deletions

View File

@@ -466,7 +466,7 @@ where
})
}
pub fn export(&self, module: &str, name: &str) -> Result<Export, Error> {
pub fn export(&self, module: &str, name: &str, tracing: Tracing) -> Result<Export, Error> {
self.checked_modules
.get(module)
.and_then(|checked_module| {
@@ -476,7 +476,7 @@ where
})
})
.map(|(checked_module, func)| {
let mut generator = self.new_generator(Tracing::silent());
let mut generator = self.new_generator(tracing);
Export::from_function(func, checked_module, &mut generator, &self.checked_modules)
})