Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LOGGING] snap pipeline errors and peer reputation #6924

Merged
merged 16 commits into from May 8, 2024
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -103,6 +103,14 @@ public CompletableFuture<Task<SnapDataRequest>> requestAccount(
accountDataRequest.addResponse(
worldStateProofProvider, response.accounts(), response.proofs());
}
if (error != null) {
LOG.atWarn()
.setMessage("Error handling account download accounts ({} - {}) task: {}")
.addArgument(accountDataRequest.getStartKeyHash())
.addArgument(accountDataRequest.getEndKeyHash())
.addArgument(error)
.log();
}
return requestTask;
});
}
Expand Down Expand Up @@ -166,6 +174,12 @@ public CompletableFuture<List<Task<SnapDataRequest>>> requestStorage(
LOG.error("Error while processing storage range response", e);
}
}
if (error != null) {
LOG.atWarn()
.setMessage("Error handling storage range request task: {}")
.addArgument(error)
.log();
}
return requestTasks;
});
}
Expand Down Expand Up @@ -198,6 +212,12 @@ public CompletableFuture<List<Task<SnapDataRequest>>> requestCode(
}
}
}
if (error != null) {
LOG.atWarn()
.setMessage("Error handling code request task: {}")
.addArgument(error)
.log();
}
return requestTasks;
});
}
Expand Down Expand Up @@ -237,6 +257,12 @@ public CompletableFuture<List<Task<SnapDataRequest>>> requestTrieNodeByPath(
}
}
}
if (error != null) {
LOG.atWarn()
.setMessage("Error handling trie node request task: {}")
.addArgument(error)
.log();
}
return requestTasks;
});
}
Expand Down