Improved tracing (part 1)

This commit is contained in:
mdecimus
2024-07-23 12:44:14 +02:00
parent 9c23774aa5
commit ae7cadc27d
224 changed files with 2352 additions and 1832 deletions

View File

@@ -88,7 +88,7 @@ async fn lmtp_directory() {
Item::Verify(v) => match core.vrfy(&handle, v).await {
Ok(v) => v.into(),
Err(e) => {
if e.matches(trc::Cause::Store(trc::StoreCause::NotSupported)) {
if e.matches(trc::EventType::Store(trc::StoreEvent::NotSupported)) {
LookupResult::False
} else {
panic!("Unexpected error: {e:?}")
@@ -98,7 +98,7 @@ async fn lmtp_directory() {
Item::Expand(v) => match core.expn(&handle, v).await {
Ok(v) => v.into(),
Err(e) => {
if e.matches(trc::Cause::Store(trc::StoreCause::NotSupported)) {
if e.matches(trc::EventType::Store(trc::StoreEvent::NotSupported)) {
LookupResult::False
} else {
panic!("Unexpected error: {e:?}")
@@ -132,7 +132,7 @@ async fn lmtp_directory() {
Item::Verify(v) => match core.vrfy(&handle, v).await {
Ok(v) => v.into(),
Err(e) => {
if e.matches(trc::Cause::Store(trc::StoreCause::NotSupported)) {
if e.matches(trc::EventType::Store(trc::StoreEvent::NotSupported)) {
LookupResult::False
} else {
panic!("Unexpected error: {e:?}")
@@ -142,7 +142,7 @@ async fn lmtp_directory() {
Item::Expand(v) => match core.expn(&handle, v).await {
Ok(v) => v.into(),
Err(e) => {
if e.matches(trc::Cause::Store(trc::StoreCause::NotSupported)) {
if e.matches(trc::EventType::Store(trc::StoreEvent::NotSupported)) {
LookupResult::False
} else {
panic!("Unexpected error: {e:?}")