Skip to content

Commit 89333d7

Browse files
committed
chore(dapi-client): add WARN log when banning address
1 parent 654e563 commit 89333d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/rs-dapi-client/src/dapi_client.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ impl DapiRequestExecutor for DapiClient {
227227
.address_list
228228
.write()
229229
.expect("can't get address list for write");
230-
230+
tracing::warn!(
231+
?address,
232+
?error,
233+
"received server error, banning address"
234+
);
231235
address_list.ban_address(&address).map_err(|error| {
232236
ExecutionError {
233237
inner: DapiClientError::AddressList(error),

0 commit comments

Comments
 (0)