reduce several tracing spans to debug level
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
427877d5bc
commit
b560338b2a
@ -286,7 +286,7 @@ impl Ruleset {
|
|||||||
///
|
///
|
||||||
/// * `event` - The raw JSON of a room message event.
|
/// * `event` - The raw JSON of a room message event.
|
||||||
/// * `context` - The context of the message and room at the time of the 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>(
|
pub fn get_match<T>(
|
||||||
&self,
|
&self,
|
||||||
event: &Raw<T>,
|
event: &Raw<T>,
|
||||||
@ -310,7 +310,7 @@ impl Ruleset {
|
|||||||
///
|
///
|
||||||
/// * `event` - The raw JSON of a room message event.
|
/// * `event` - The raw JSON of a room message event.
|
||||||
/// * `context` - The context of the message and room at the time of the 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] {
|
pub fn get_actions<T>(&self, event: &Raw<T>, context: &PushConditionRoomCtx) -> &[Action] {
|
||||||
self.get_match(event, context).map(|rule| rule.actions()).unwrap_or(&[])
|
self.get_match(event, context).map(|rule| rule.actions()).unwrap_or(&[])
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ impl FlattenedJson {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Flatten and insert the `value` at `path`.
|
/// 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) {
|
fn flatten_value(&mut self, value: JsonValue, path: String) {
|
||||||
match value {
|
match value {
|
||||||
JsonValue::Object(fields) => {
|
JsonValue::Object(fields) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user