mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor: use Debug impl instead of Display impl for logging errors (#5301)
This commit is contained in:
@ -65,7 +65,7 @@ macro_rules! fallback_reverse_lookup_not_found {
|
||||
match $a {
|
||||
Ok(res) => res,
|
||||
Err(err) => {
|
||||
router_env::logger::error!(reverse_lookup_fallback = %err);
|
||||
router_env::logger::error!(reverse_lookup_fallback = ?err);
|
||||
match err.current_context() {
|
||||
errors::StorageError::ValueNotFound(_) => return $b,
|
||||
errors::StorageError::DatabaseError(data_err) => {
|
||||
|
||||
Reference in New Issue
Block a user