mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +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!(),
|
release: sentry::release_name!(),
|
||||||
dsn: Some(SENTRY_DSN.parse()?),
|
dsn: Some(SENTRY_DSN.parse()?),
|
||||||
before_send: Some(Arc::new(|event| {
|
before_send: Some(Arc::new(|event| {
|
||||||
event
|
if matches!(event.message, Some(ref msg) if msg.to_lowercase().contains("no space left on device"))
|
||||||
.message
|
{
|
||||||
.as_ref()
|
None
|
||||||
.map(|msg| msg.to_lowercase().contains("no space left on device"))
|
} else {
|
||||||
.unwrap_or(false)
|
Some(event)
|
||||||
.then(|| event)
|
}
|
||||||
})),
|
})),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user