fix: edit no status card

This commit is contained in:
appflowy
2022-10-12 15:41:34 +08:00
parent d2933bdb04
commit 3511737bb3
27 changed files with 221 additions and 149 deletions

View File

@ -114,11 +114,10 @@ fn format_event_message<S: Subscriber + for<'a> tracing_subscriber::registry::Lo
let mut message = event_visitor
.values()
.get("message")
.map(|v| match v {
.and_then(|v| match v {
Value::String(s) => Some(s.as_str()),
_ => None,
})
.flatten()
.unwrap_or_else(|| event.metadata().target())
.to_owned();