mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
more differentiate between log levels
This commit is contained in:
parent
10a24629c9
commit
94dabb09ed
@ -15,7 +15,7 @@ executable_instruction!(
|
||||
));
|
||||
}
|
||||
|
||||
log::trace!("arg.get: pushing {:?} on the stack", invocation_inputs[index as usize]);
|
||||
log::debug!("arg.get: pushing {:?} on the stack", invocation_inputs[index as usize]);
|
||||
|
||||
runtime.stack.push(invocation_inputs[index as usize].clone());
|
||||
|
||||
|
@ -290,7 +290,7 @@ where
|
||||
let record =
|
||||
record_lift_memory_(&**instance, record_type, offset, instruction.clone())?;
|
||||
|
||||
log::trace!("record.lift_memory: pushing {:?} on the stack", record);
|
||||
log::debug!("record.lift_memory: pushing {:?} on the stack", record);
|
||||
runtime.stack.push(record);
|
||||
|
||||
Ok(())
|
||||
@ -390,12 +390,12 @@ where
|
||||
instruction.clone(),
|
||||
)?;
|
||||
|
||||
log::trace!("record.lower_memory: obtained {:?} values on the stack for record type = {}", record_fields, record_type_id);
|
||||
log::debug!("record.lower_memory: obtained {:?} values on the stack for record type = {}", record_fields, record_type_id);
|
||||
|
||||
let offset =
|
||||
record_lower_memory_(*instance, instruction.clone(), record_fields)?;
|
||||
|
||||
log::trace!("record.lower_memory: pushing {} on the stack", offset);
|
||||
log::debug!("record.lower_memory: pushing {} on the stack", offset);
|
||||
runtime.stack.push(InterfaceValue::I32(offset));
|
||||
|
||||
Ok(())
|
||||
|
@ -62,7 +62,7 @@ executable_instruction!(
|
||||
let string = String::from_utf8(data)
|
||||
.map_err(|error| InstructionError::new(instruction.clone(), InstructionErrorKind::String(error)))?;
|
||||
|
||||
log::trace!("string.lift_memory: pushing {:?} on the stack", string);
|
||||
log::debug!("string.lift_memory: pushing {:?} on the stack", string);
|
||||
runtime.stack.push(InterfaceValue::String(string));
|
||||
|
||||
Ok(())
|
||||
@ -109,7 +109,7 @@ executable_instruction!(
|
||||
memory_view[string_pointer as usize + nth].set(*byte);
|
||||
}
|
||||
|
||||
log::trace!("string.lower_memory: pushing {}, {} on the stack", string_pointer, string_length);
|
||||
log::debug!("string.lower_memory: pushing {}, {} on the stack", string_pointer, string_length);
|
||||
runtime.stack.push(InterfaceValue::I32(string_pointer as i32));
|
||||
runtime.stack.push(InterfaceValue::I32(string_length));
|
||||
|
||||
@ -125,7 +125,7 @@ executable_instruction!(
|
||||
Some(InterfaceValue::String(string)) => {
|
||||
let length = string.len() as i32;
|
||||
|
||||
log::trace!("string.size: pushing {} on the stack", length);
|
||||
log::debug!("string.size: pushing {} on the stack", length);
|
||||
runtime.stack.push(InterfaceValue::I32(length));
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user