Skip to content

Commit

Permalink
Filter recordings which could not be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
cmanallen committed Dec 7, 2022
1 parent 5b3f773 commit 232e0ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions relay-server/src/actors/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1029,16 +1029,16 @@ impl EnvelopeProcessorService {
match parsed_recording {
Ok(recording) => {
item.set_payload(ContentType::OctetStream, recording.as_slice());
true
}
Err(e) => {
relay_log::warn!("failed to parse replay event: {}", e);
false
}
}
} else {
false
}

// XXX: For now replays that could not be parsed are still accepted while we
// determine the impact of the recording parser.
replays_enabled
}
_ => true,
});
Expand Down

0 comments on commit 232e0ee

Please sign in to comment.