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

@ -338,8 +338,8 @@ async fn store_bank_details_in_payment_methods(
.attach_printable("Failed to deserialize Payment Method Auth config")
})
.transpose()
.unwrap_or_else(|err| {
logger::error!(error=?err);
.unwrap_or_else(|error| {
logger::error!(?error);
None
})
.and_then(|pmd| match pmd {