From be1320d21d67ebd774d2da8e9f4f1ec05e596b0b Mon Sep 17 00:00:00 2001 From: mpostma Date: Thu, 14 May 2020 10:42:01 +0200 Subject: [PATCH 1/2] enables debug without sentry --- meilisearch-http/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/meilisearch-http/src/main.rs b/meilisearch-http/src/main.rs index 7d48fe12b..7e49796f2 100644 --- a/meilisearch-http/src/main.rs +++ b/meilisearch-http/src/main.rs @@ -20,13 +20,13 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; async fn main() -> Result<(), MainError> { let opt = Opt::from_args(); - #[cfg(feature = "sentry")] + #[cfg(all(not(debug_assertions), feature = "sentry"))] let _sentry = sentry::init(( - "https://5ddfa22b95f241198be2271aaf028653@sentry.io/3060337", - sentry::ClientOptions { - release: sentry::release_name!(), - ..Default::default() - }, + "https://5ddfa22b95f241198be2271aaf028653@sentry.io/3060337", + sentry::ClientOptions { + release: sentry::release_name!(), + ..Default::default() + }, )); match opt.env.as_ref() { @@ -38,7 +38,7 @@ async fn main() -> Result<(), MainError> { ); } - #[cfg(feature = "sentry")] + #[cfg(all(not(debug_assertions), feature = "sentry"))] if !opt.no_analytics { sentry::integrations::panic::register_panic_handler(); sentry::integrations::env_logger::init(None, Default::default()); From 1f35db2ddc49d19405ddd33366d63847d0e5e101 Mon Sep 17 00:00:00 2001 From: mpostma Date: Thu, 14 May 2020 10:56:57 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69be1a4d3..a30895e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## v0.10.2 + - Disable sentry in debug (#681) - Add support for facet count (#676) - Add support for faceted search (#631) - Add support for configuring the lmdb map size (#646, #647)