Skip to content

Commit

Permalink
fix: Log "platform not available" error
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Sep 12, 2024
1 parent 2ef1a08 commit b563597
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crates/symbolicator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
};

Expand Down

0 comments on commit b563597

Please sign in to comment.