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) => {