mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
sentry was never sending anything
This commit is contained in:
parent
0136b02e5b
commit
5d4a0ac844
@ -49,12 +49,12 @@ async fn main() -> Result<(), MainError> {
|
||||
release: sentry::release_name!(),
|
||||
dsn: Some(SENTRY_DSN.parse()?),
|
||||
before_send: Some(Arc::new(|event| {
|
||||
event
|
||||
.message
|
||||
.as_ref()
|
||||
.map(|msg| msg.to_lowercase().contains("no space left on device"))
|
||||
.unwrap_or(false)
|
||||
.then(|| event)
|
||||
if matches!(event.message, Some(ref msg) if msg.to_lowercase().contains("no space left on device"))
|
||||
{
|
||||
None
|
||||
} else {
|
||||
Some(event)
|
||||
}
|
||||
})),
|
||||
..Default::default()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user