Sitelet https://github.com/init4tech/trevm/commit/ef3960094a901a2ac5308d50a77fc1983ac0e9b6
Skip to content

Commit ef39600

Browse files
committed
debug logging
1 parent 6e2d337 commit ef39600

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/inspectors/timeout.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,19 @@ impl<Db: Database, Int: InterpreterTypes> Inspector<Ctx<Db>, Int> for TimeLimit
8585
}
8686

8787
fn call(&mut self, ctx: &mut Ctx<Db>, _inputs: &mut CallInputs) -> Option<CallOutcome> {
88+
println!("call");
8889
check_timeout!(self, ctx);
8990

9091
None
9192
}
9293

9394
fn call_end(&mut self, ctx: &mut Ctx<Db>, _inputs: &CallInputs, _outcome: &mut CallOutcome) {
95+
println!("call_end");
9496
check_timeout!(self, ctx);
9597
}
9698

9799
fn create(&mut self, ctx: &mut Ctx<Db>, _inputs: &mut CreateInputs) -> Option<CreateOutcome> {
100+
println!("create");
98101
check_timeout!(self, ctx);
99102

100103
None
@@ -106,6 +109,7 @@ impl<Db: Database, Int: InterpreterTypes> Inspector<Ctx<Db>, Int> for TimeLimit
106109
_inputs: &CreateInputs,
107110
_outcome: &mut CreateOutcome,
108111
) {
112+
println!("create_end");
109113
check_timeout!(self, ctx);
110114
}
111115

@@ -114,6 +118,7 @@ impl<Db: Database, Int: InterpreterTypes> Inspector<Ctx<Db>, Int> for TimeLimit
114118
ctx: &mut Ctx<Db>,
115119
_inputs: &mut EOFCreateInputs,
116120
) -> Option<CreateOutcome> {
121+
println!("eofcreate");
117122
check_timeout!(self, ctx);
118123

119124
None
@@ -125,6 +130,7 @@ impl<Db: Database, Int: InterpreterTypes> Inspector<Ctx<Db>, Int> for TimeLimit
125130
_inputs: &EOFCreateInputs,
126131
_outcome: &mut CreateOutcome,
127132
) {
133+
println!("eofcreate_end");
128134
check_timeout!(self, ctx);
129135
}
130136
}

0 commit comments

Comments
 (0)