Skip to content

Commit

Permalink
fix: Log "platform not available" error (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim authored Sep 13, 2024
1 parent 8b11255 commit b83f2a4
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 @@ -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");
}
}
};

Expand Down

0 comments on commit b83f2a4

Please sign in to comment.