INNER CODE UNIT · Rust
Ok
rustic-rs/rustic · src/commands.rs:262
if let Ok(url) = Url::parse(&value) {
_ = config.global.opentelemetry.insert(url);
}
} else if var == "OTEL_SERVICE_NAME" && cfg!(feature = "opentelemetry") {
_ = config.backup.metrics_job.insert(value);
}
}
// collect logs during merging as we start the logger *after* merging
let mut merge_logs = Vec::new();
// get global options from command line / env and config file
if config.global.use_profiles.is_empty() {
config.merge_profile("rustic", &mut merge_logs, Level::Info)?;
} else {
for profile in &config.global.use_profiles.clone() {
config.merge_profile(profile, &mut merge_logs, Level::Warn)?;
}