1
0
Fork 0

Remove leftover debug prints

This commit is contained in:
Robbert van der Helm 2023-02-28 17:58:34 +01:00
parent 6ef0092dca
commit 72f57b358f

View file

@ -248,10 +248,7 @@ pub(crate) unsafe fn deserialize_json<P: Plugin>(
#[cfg(feature = "zstd")] #[cfg(feature = "zstd")]
let mut state: PluginState = match zstd::decode_all(state) { let mut state: PluginState = match zstd::decode_all(state) {
Ok(decompressed) => match serde_json::from_slice(decompressed.as_slice()) { Ok(decompressed) => match serde_json::from_slice(decompressed.as_slice()) {
Ok(s) => { Ok(s) => s,
nih_log!("Deserialized compressed");
s
}
Err(err) => { Err(err) => {
nih_debug_assert_failure!("Error while deserializing state: {}", err); nih_debug_assert_failure!("Error while deserializing state: {}", err);
return false; return false;
@ -260,10 +257,7 @@ pub(crate) unsafe fn deserialize_json<P: Plugin>(
// Uncompressed state files can still be loaded after enabling this feature to prevent // Uncompressed state files can still be loaded after enabling this feature to prevent
// breaking existing plugin instances // breaking existing plugin instances
Err(zstd_err) => match serde_json::from_slice(state) { Err(zstd_err) => match serde_json::from_slice(state) {
Ok(s) => { Ok(s) => s,
nih_log!("Deserialized uncompressed");
s
}
Err(json_err) => { Err(json_err) => {
nih_debug_assert_failure!( nih_debug_assert_failure!(
"Error while deserializing state as either compressed or uncompressed state: \ "Error while deserializing state as either compressed or uncompressed state: \