mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +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!(),
|
||||
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