Log trace messages when loading and saving state
This commit is contained in:
parent
72d3b61a42
commit
5110e5b059
2 changed files with 9 additions and 0 deletions
|
@ -3089,6 +3089,8 @@ impl<P: ClapPlugin> Wrapper<P> {
|
|||
return false;
|
||||
}
|
||||
|
||||
nih_trace!("Saved state ({} bytes)", serialized.len());
|
||||
|
||||
true
|
||||
}
|
||||
Err(err) => {
|
||||
|
@ -3152,6 +3154,8 @@ impl<P: ClapPlugin> Wrapper<P> {
|
|||
process_wrapper(|| plugin.reset());
|
||||
}
|
||||
|
||||
nih_trace!("Loaded state ({length} bytes)");
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -529,6 +529,8 @@ impl<P: Vst3Plugin> IComponent for Wrapper<P> {
|
|||
process_wrapper(|| plugin.reset());
|
||||
}
|
||||
|
||||
nih_trace!("Loaded state ({} bytes)", read_buffer.len());
|
||||
|
||||
kResultOk
|
||||
}
|
||||
|
||||
|
@ -552,6 +554,9 @@ impl<P: Vst3Plugin> IComponent for Wrapper<P> {
|
|||
|
||||
nih_debug_assert_eq!(result, kResultOk);
|
||||
nih_debug_assert_eq!(num_bytes_written as usize, serialized.len());
|
||||
|
||||
nih_trace!("Saved state ({} bytes)", serialized.len());
|
||||
|
||||
kResultOk
|
||||
}
|
||||
Err(err) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue