From 86ddd8acbfd926e10306092c37eba2106525b28c Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Fri, 17 Nov 2023 13:41:40 +0100 Subject: [PATCH] Remove default debug handler --- packages/vm/src/instance.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/vm/src/instance.rs b/packages/vm/src/instance.rs index b5f26c875e..9939541a27 100644 --- a/packages/vm/src/instance.rs +++ b/packages/vm/src/instance.rs @@ -95,17 +95,7 @@ where extra_imports: Option>, instantiation_lock: Option<&Mutex<()>>, ) -> VmResult { - let fe = FunctionEnv::new(&mut store, { - let e = Environment::new(backend.api, gas_limit); - if print_debug { - e.set_debug_handler(Some(Rc::new(RefCell::new( - |msg: &str, _info: DebugInfo<'_>| { - eprintln!("{msg}"); - }, - )))) - } - e - }); + let fe = FunctionEnv::new(&mut store, Environment::new(backend.api, gas_limit)); let mut import_obj = Imports::new(); let mut env_imports = Exports::new();