mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
add sentry as default feature
This commit is contained in:
parent
57e515d5e2
commit
b89e76ccb4
2 changed files with 7 additions and 1 deletions
|
@ -19,6 +19,7 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
|||
async fn main() -> Result<(), MainError> {
|
||||
let opt = Opt::from_args();
|
||||
|
||||
#[cfg(feature = "sentry")]
|
||||
let _sentry = sentry::init((
|
||||
"https://5ddfa22b95f241198be2271aaf028653@sentry.io/3060337",
|
||||
sentry::ClientOptions {
|
||||
|
@ -35,6 +36,8 @@ async fn main() -> Result<(), MainError> {
|
|||
.into(),
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "sentry")]
|
||||
if !opt.no_analytics {
|
||||
sentry::integrations::panic::register_panic_handler();
|
||||
sentry::integrations::env_logger::init(None, Default::default());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue