Skip to content

Commit 10afe9b

Browse files
committed
Fix starting up when no telemetry config is set
1 parent a8f58d4 commit 10afe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::{io::IsTerminal, process::ExitCode, sync::Arc};
1010

1111
use anyhow::Context;
1212
use clap::Parser;
13-
use mas_config::{ConfigurationSection, TelemetryConfig};
13+
use mas_config::{ConfigurationSectionExt, TelemetryConfig};
1414
use sentry_tracing::EventFilter;
1515
use tracing_subscriber::{
1616
EnvFilter, Layer, Registry, filter::LevelFilter, layer::SubscriberExt, util::SubscriberInitExt,
@@ -110,7 +110,7 @@ async fn try_main() -> anyhow::Result<ExitCode> {
110110
let figment = opts.figment();
111111

112112
let telemetry_config =
113-
TelemetryConfig::extract(&figment).context("Failed to load telemetry config")?;
113+
TelemetryConfig::extract_or_default(&figment).context("Failed to load telemetry config")?;
114114

115115
// Setup Sentry
116116
let sentry = sentry::init((

0 commit comments

Comments
 (0)