mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
enables debug without sentry
This commit is contained in:
parent
308c652b30
commit
be1320d21d
1 changed files with 7 additions and 7 deletions
|
@ -20,7 +20,7 @@ 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 {
|
||||||
|
@ -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…
Add table
Add a link
Reference in a new issue