feat: improve packet::parse tracing
This commit is contained in:
parent
7461b8ea30
commit
f1c1b2c122
3 changed files with 41 additions and 17 deletions
|
|
@ -82,11 +82,11 @@ impl From<&str> for OpaqueError {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<crate::packets::ParseError> for OpaqueError {
|
||||
fn from(value: crate::packets::ParseError) -> Self {
|
||||
impl From<crate::packets::ParseErrorTrace> for OpaqueError {
|
||||
fn from(value: crate::packets::ParseErrorTrace) -> Self {
|
||||
Self {
|
||||
span_trace: SpanTrace::capture(),
|
||||
context: format!("{:?}", value),
|
||||
span_trace: value.context,
|
||||
context: format!("packet parse error: {:?}", value.inner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue