reduce several tracing spans to debug level

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-23 04:36:37 +00:00
parent 427877d5bc
commit b560338b2a
2 changed files with 3 additions and 3 deletions

View File

@ -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<T>(
&self,
event: &Raw<T>,
@ -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<T>(&self, event: &Raw<T>, context: &PushConditionRoomCtx) -> &[Action] {
self.get_match(event, context).map(|rule| rule.actions()).unwrap_or(&[])
}

View File

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