Skip to content

Commit

Permalink
chore(watch_dog): log method name on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Jan 8, 2025
1 parent 8c65a50 commit a7073cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bridges/centralized-ethereum/src/actors/watch_dog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ async fn fetch_wit_info(
},
Ok(Err(_)) => None,
Err(err) => {
log::debug!("fetch_wit_info => {}", err);
log::debug!("fetch_wit_info => method: getPkh; error: {}", err);
return Err(WatchDogStatus::WitErrors);
}
};
Expand All @@ -462,7 +462,7 @@ async fn fetch_wit_info(
let res = match res {
Ok(res) => res,
Err(err) => {
log::debug!("fetch_wit_info => {}", err);
log::debug!("fetch_wit_info => method: getBalance; error: {}", err);
return Err(WatchDogStatus::WitErrors);
}
};
Expand All @@ -472,7 +472,7 @@ async fn fetch_wit_info(
None => None,
},
Err(err) => {
log::debug!("fetch_wit_info => {}", err);
log::debug!("fetch_wit_info => method: getBalance; error: {}", err);
return Err(WatchDogStatus::WitErrors);
}
}
Expand All @@ -490,7 +490,7 @@ async fn fetch_wit_info(
let res = match res {
Ok(res) => res,
Err(err) => {
log::debug!("fetch_wit_info => {}", err);
log::debug!("fetch_wit_info => method: getUtxoInfo; error: {}", err);
return Err(WatchDogStatus::WitErrors);
}
};
Expand All @@ -512,7 +512,7 @@ async fn fetch_wit_info(
}
}
Err(err) => {
log::debug!("fetch_wit_info => {}", err);
log::debug!("fetch_wit_info => method: getUtxoInfo; error: {}", err);
return Err(WatchDogStatus::WitErrors);
}
}
Expand Down

0 comments on commit a7073cc

Please sign in to comment.