From b81573d2b8e76b0ad479fddc0d950025cd5a8a2d Mon Sep 17 00:00:00 2001 From: NikVolf Date: Fri, 19 May 2017 17:15:41 +0300 Subject: [PATCH] logger notion --- rust-runner/src/runtime.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust-runner/src/runtime.rs b/rust-runner/src/runtime.rs index 9f751c2..876d96b 100644 --- a/rust-runner/src/runtime.rs +++ b/rust-runner/src/runtime.rs @@ -69,6 +69,8 @@ impl Runtime { let val = StorageValue::from_mem(self.memory.get(val_ptr as u32, 32)?) .map_err(|_| interpreter::Error::Trap("Memory access violation".to_owned()))?; + println!("write storage {:?} = {:?}", key, val); + self.storage.insert(key, val); Ok(Some(0i32.into()))