@@ -209,12 +209,13 @@ def apply_msg(ext, msg):
209
209
210
210
211
211
def _apply_msg (ext , msg , code ):
212
- if log_msg .is_active :
212
+ if log_msg .is_active ( 'trace' ) :
213
213
log_msg .debug ("MSG APPLY" , sender = encode_hex (msg .sender ), to = encode_hex (msg .to ),
214
214
gas = msg .gas , value = msg .value ,
215
215
data = encode_hex (msg .data .extract_all ()))
216
- if log_state .is_active :
217
- log_state .trace ('MSG PRE STATE' , account = msg .to , bal = ext .get_balance (msg .to ), state = ext .log_storage (msg .to ))
216
+ if log_state .is_active ('trace' ):
217
+ log_state .trace ('MSG PRE STATE' , account = msg .to , bal = ext .get_balance (
218
+ msg .to ), state = ext .log_storage (msg .to ))
218
219
# Transfer value, instaquit if not enough
219
220
snapshot = ext ._block .snapshot ()
220
221
o = ext ._block .transfer_value (msg .sender , msg .to , msg .value )
@@ -229,11 +230,12 @@ def _apply_msg(ext, msg, code):
229
230
res , gas , dat = vm .vm_execute (ext , msg , code )
230
231
gas = int (gas )
231
232
assert utils .is_numeric (gas )
232
- if log_msg .is_active :
233
+ if log_msg .is_active ( 'trace' ) :
233
234
log_msg .debug ('MSG APPLIED' , result = o , gas_remained = gas ,
234
235
sender = msg .sender , to = msg .to , data = dat )
235
- if log_state .is_active :
236
- log_state .trace ('MSG POST STATE' , account = msg .to , bal = ext .get_balance (msg .to ), state = ext .log_storage (msg .to ))
236
+ if log_state .is_active ('trace' ):
237
+ log_state .trace ('MSG POST STATE' , account = msg .to , bal = ext .get_balance (
238
+ msg .to ), state = ext .log_storage (msg .to ))
237
239
238
240
if res == 0 :
239
241
log_msg .debug ('REVERTING' )
0 commit comments