Add release channel to panic collab upload (#3556)

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2023-12-08 12:25:59 -05:00
parent 9ee9501550
commit 55ba01dcbb

View file

@ -116,12 +116,13 @@ struct CreateUserResponse {
#[derive(Debug, Deserialize)]
struct Panic {
version: String,
release_channel: String,
text: String,
}
#[instrument(skip(panic))]
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
tracing::error!(version = %panic.version, text = %panic.text, "panic report");
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, text = %panic.text, "panic report");
Ok(())
}