From b83f2a4f2a6d799a60f3386502129ca10fe2f167 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Fri, 13 Sep 2024 12:55:06 +0200 Subject: [PATCH] fix: Log "platform not available" error (#1518) --- 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 fd4555194..3daa2f897 100644 --- a/crates/symbolicator/src/cli.rs +++ b/crates/symbolicator/src/cli.rs @@ -138,10 +138,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"); + } } };