refactor: use Debug impl instead of Display impl for logging errors (#5301)

This commit is contained in:
Sanchith Hegde
2024-07-12 13:21:22 +05:30
committed by GitHub
parent d65d7b5cca
commit e835706ad6
27 changed files with 192 additions and 153 deletions

View File

@ -101,7 +101,7 @@ impl<T: PTError + std::fmt::Debug + std::fmt::Display> From<error_stack::Report<
for ProcessTrackerError
{
fn from(error: error_stack::Report<T>) -> Self {
logger::error!(error=%error.current_context());
logger::error!(?error);
error.current_context().to_pt_error()
}
}