From b560338b2a50dbf61ecfe80808b9b095ad4cec00 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 23 Jan 2025 04:36:37 +0000 Subject: [PATCH] reduce several tracing spans to debug level Signed-off-by: Jason Volk --- crates/ruma-common/src/push.rs | 4 ++-- crates/ruma-common/src/push/condition/flattened_json.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruma-common/src/push.rs b/crates/ruma-common/src/push.rs index 665f32ec..73174ac0 100644 --- a/crates/ruma-common/src/push.rs +++ b/crates/ruma-common/src/push.rs @@ -286,7 +286,7 @@ impl Ruleset { /// /// * `event` - The raw JSON of a room message event. /// * `context` - The context of the message and room at the time of the event. - #[instrument(skip_all, fields(context.room_id = %context.room_id))] + #[instrument(level = "debug", skip_all, fields(context.room_id = %context.room_id))] pub fn get_match( &self, event: &Raw, @@ -310,7 +310,7 @@ impl Ruleset { /// /// * `event` - The raw JSON of a room message event. /// * `context` - The context of the message and room at the time of the event. - #[instrument(skip_all, fields(context.room_id = %context.room_id))] + #[instrument(level = "debug", skip_all, fields(context.room_id = %context.room_id))] pub fn get_actions(&self, event: &Raw, context: &PushConditionRoomCtx) -> &[Action] { self.get_match(event, context).map(|rule| rule.actions()).unwrap_or(&[]) } diff --git a/crates/ruma-common/src/push/condition/flattened_json.rs b/crates/ruma-common/src/push/condition/flattened_json.rs index f3c7369c..cc574ba2 100644 --- a/crates/ruma-common/src/push/condition/flattened_json.rs +++ b/crates/ruma-common/src/push/condition/flattened_json.rs @@ -25,7 +25,7 @@ impl FlattenedJson { } /// Flatten and insert the `value` at `path`. - #[instrument(skip(self, value))] + #[instrument(level = "debug", skip(self, value))] fn flatten_value(&mut self, value: JsonValue, path: String) { match value { JsonValue::Object(fields) => {