Retrieve app version from crash rather than from current binary

The crash might have been generated weeks before and the app may
have been updated since then.
This commit is contained in:
Antonio Scandurra 2022-05-02 15:34:05 +02:00
parent 09a8b8e675
commit 54a45095cd
2 changed files with 45 additions and 27 deletions

View file

@ -137,7 +137,7 @@ struct Crash {
text: String,
}
#[instrument]
#[instrument(skip(crash))]
async fn trace_crash(crash: Json<Crash>) -> Result<()> {
tracing::error!(version = %crash.version, text = %crash.text, "crash report");
Ok(())