From b563597228eac00d8850c717179f3305c34d2398 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Thu, 12 Sep 2024 17:13:28 +0200 Subject: [PATCH] fix: Log "platform not available" error --- crates/symbolicator/src/cli.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/symbolicator/src/cli.rs b/crates/symbolicator/src/cli.rs index bda3a4196..cf5382bef 100644 --- a/crates/symbolicator/src/cli.rs +++ b/crates/symbolicator/src/cli.rs @@ -147,10 +147,13 @@ pub fn execute() -> Result<()> { platform_tag ); } - if let Ok(platform) = std::env::var("SYMBOLICATOR_PLATFORM") { - tags.insert(platform_tag, platform.to_string()); - } else { - tracing::error!("platform not available"); + match std::env::var("SYMBOLICATOR_PLATFORM") { + Ok(platform) => { + tags.insert(platform_tag, platform.to_string()); + } + Err(e) => { + tracing::error!(error = %e, "platform not available"); + } } };