Skip to content

Commit

Permalink
Updating log message
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Dec 20, 2021
1 parent cdd4edb commit 83495b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public JsonNode traceTransaction(String transactionHash, Map<String, String> tra
if (options.getUnsupportedOptions().size() > 0) {
// TODO: implement the logic that takes into account the remaining trace options.
logger.warn(
"Received {} trace options. For now they are being ignored",
"Received {} unsupported trace options. For now these are being ignored",
options.getUnsupportedOptions());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TraceOptions {

private static final String[] SUPPORTED_OPTIONS = {
"disableStorage", "disableMemory", "disableStack"};
private static final String[] OPTIONAL_FIELDS = {
private static final String[] DISABLED_FIELDS = {
"disableStorage", "disableMemory", "disableStack"};

private Set<String> disabledFields = Collections.emptySet();
Expand All @@ -37,7 +37,7 @@ private TraceOptions() {}
public TraceOptions(Map<String, String> traceOptions) {
if (traceOptions != null) {
disabledFields = Arrays
.stream(OPTIONAL_FIELDS)
.stream(DISABLED_FIELDS)
.filter(field -> traceOptions
.containsKey(field) && Boolean.parseBoolean(traceOptions.get(field)))
.collect(Collectors.toSet());
Expand Down

0 comments on commit 83495b6

Please sign in to comment.