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:
parent
09a8b8e675
commit
54a45095cd
2 changed files with 45 additions and 27 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue