chore: add log

This commit is contained in:
appflowy
2022-08-15 22:40:54 +08:00
parent 2623974def
commit f841587c27
8 changed files with 39 additions and 15 deletions

View File

@ -93,6 +93,8 @@ impl fmt::Display for FlowyError {
impl lib_dispatch::Error for FlowyError {
fn as_response(&self) -> EventResponse {
let bytes: Bytes = self.clone().try_into().unwrap();
println!("Serialize FlowyError: {:?} to event response", self);
ResponseBuilder::Err().data(bytes).build()
}
}