mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Merge pull request #681 from MarinPostma/sentry-release-only
enables debug without sentry
This commit is contained in:
commit
c95d4e48a5
@ -1,5 +1,6 @@
|
|||||||
## v0.10.2
|
## v0.10.2
|
||||||
|
|
||||||
|
- Disable sentry in debug (#681)
|
||||||
- Add support for facet count (#676)
|
- Add support for facet count (#676)
|
||||||
- Add support for faceted search (#631)
|
- Add support for faceted search (#631)
|
||||||
- Add support for configuring the lmdb map size (#646, #647)
|
- Add support for configuring the lmdb map size (#646, #647)
|
||||||
|
@ -20,13 +20,13 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
|||||||
async fn main() -> Result<(), MainError> {
|
async fn main() -> Result<(), MainError> {
|
||||||
let opt = Opt::from_args();
|
let opt = Opt::from_args();
|
||||||
|
|
||||||
#[cfg(feature = "sentry")]
|
#[cfg(all(not(debug_assertions), feature = "sentry"))]
|
||||||
let _sentry = sentry::init((
|
let _sentry = sentry::init((
|
||||||
"https://5ddfa22b95f241198be2271aaf028653@sentry.io/3060337",
|
"https://5ddfa22b95f241198be2271aaf028653@sentry.io/3060337",
|
||||||
sentry::ClientOptions {
|
sentry::ClientOptions {
|
||||||
release: sentry::release_name!(),
|
release: sentry::release_name!(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
|
||||||
match opt.env.as_ref() {
|
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 {
|
if !opt.no_analytics {
|
||||||
sentry::integrations::panic::register_panic_handler();
|
sentry::integrations::panic::register_panic_handler();
|
||||||
sentry::integrations::env_logger::init(None, Default::default());
|
sentry::integrations::env_logger::init(None, Default::default());
|
||||||
|
Loading…
Reference in New Issue
Block a user