mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 22:42:17 +03:00
Add backtrace hash to collab server panic api
This commit is contained in:
parent
02bcc7bbeb
commit
7cd6825eee
@ -117,12 +117,13 @@ struct CreateUserResponse {
|
|||||||
struct Panic {
|
struct Panic {
|
||||||
version: String,
|
version: String,
|
||||||
release_channel: String,
|
release_channel: String,
|
||||||
|
backtrace_hash: String,
|
||||||
text: String,
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(skip(panic))]
|
#[instrument(skip(panic))]
|
||||||
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
|
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
|
||||||
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, text = %panic.text, "panic report");
|
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, backtrace_hash = %panic.backtrace_hash, text = %panic.text, "panic report");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,12 +117,13 @@ struct CreateUserResponse {
|
|||||||
struct Panic {
|
struct Panic {
|
||||||
version: String,
|
version: String,
|
||||||
release_channel: String,
|
release_channel: String,
|
||||||
|
backtrace_hash: String,
|
||||||
text: String,
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(skip(panic))]
|
#[instrument(skip(panic))]
|
||||||
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
|
async fn trace_panic(panic: Json<Panic>) -> Result<()> {
|
||||||
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, text = %panic.text, "panic report");
|
tracing::error!(version = %panic.version, release_channel = %panic.release_channel, backtrace_hash = %panic.backtrace_hash, text = %panic.text, "panic report");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user