Skip to content

Commit

Permalink
fix: stop logging the error twice when reverting to default in memory…
Browse files Browse the repository at this point in the history
… during initialization
  • Loading branch information
sgodwincs authored and umut-sahin committed Jan 11, 2024
1 parent 7f5459d commit 26feddc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/persistent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ impl<R: Resource + Serialize + DeserializeOwned> Persistent<R> {
return Err(error);
}
if loaded && result.revert_to_default_in_memory().is_err() {
log::error!("failed to revert {} to default in memory", result.name);
// return the original deserialization error
return Err(error);
}
Expand Down

0 comments on commit 26feddc

Please sign in to comment.