mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Merge #1521
1521: Sentry was never sending anything r=Kerollmops a=irevoire @Kerollmops noticed that we had no log of this release in sentry, and it look like I badly tested my code after ignoring the “No space left on device” errors. Now it should be fixed. Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
commit
b4c98f6cc3
@ -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