mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-24 00:58:00 -04:00
ui: Raise log level for local events
Local events don't happen as often, so we can afford a higher log level.
This commit is contained in:
committed by
Jonas Platte
parent
2d3a458a08
commit
2483ba2cc6
@@ -265,6 +265,7 @@ impl<'a, 'o> TimelineEventHandler<'a, 'o> {
|
||||
let should_add = match &self.ctx.flow {
|
||||
Flow::Local { txn_id, .. } => {
|
||||
span.record("txn_id", debug(txn_id));
|
||||
debug!("Handling local event");
|
||||
|
||||
true
|
||||
}
|
||||
@@ -272,17 +273,15 @@ impl<'a, 'o> TimelineEventHandler<'a, 'o> {
|
||||
Flow::Remote { event_id, txn_id, position, should_add, .. } => {
|
||||
span.record("event_id", debug(event_id));
|
||||
span.record("position", debug(position));
|
||||
|
||||
if let Some(txn_id) = txn_id {
|
||||
span.record("txn_id", debug(txn_id));
|
||||
}
|
||||
trace!("Handling remote event");
|
||||
|
||||
*should_add
|
||||
}
|
||||
};
|
||||
|
||||
trace!("Handling event");
|
||||
|
||||
match event_kind {
|
||||
TimelineEventKind::Message { content, relations } => match content {
|
||||
AnyMessageLikeEventContent::Reaction(c) => {
|
||||
|
||||
Reference in New Issue
Block a user