Skip to content

Commit

Permalink
feat(log): optimize error log output for Wallet.java (tronprotocol#5366)
Browse files Browse the repository at this point in the history
  • Loading branch information
lurais authored Aug 9, 2023
1 parent 2bbc0fd commit 1a33965
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/src/main/java/org/tron/core/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ public IncrementalMerkleTree getMerkleTreeOfBlock(long blockNum) throws ZksnarkE
.parseFrom(chainBaseManager.getMerkleTreeIndexStore().get(blockNum));
}
} catch (Exception ex) {
logger.error(ex.getMessage());
logger.error("GetMerkleTreeOfBlock failed, blockNum:{}", blockNum, ex);
}

return null;
Expand Down Expand Up @@ -4304,7 +4304,7 @@ public long getEnergyFee(long timestamp) {

return energyFee;
} catch (Exception e) {
logger.error("getEnergyFee timestamp={} failed, error is {}", timestamp, e.getMessage());
logger.error("GetEnergyFee timestamp={} failed", timestamp, e);
return getEnergyFee();
}
}
Expand All @@ -4313,7 +4313,7 @@ public String getEnergyPrices() {
try {
return chainBaseManager.getDynamicPropertiesStore().getEnergyPriceHistory();
} catch (Exception e) {
logger.error("getEnergyPrices failed, error is {}", e.getMessage());
logger.error("GetEnergyPrices failed", e);
}

return null;
Expand All @@ -4323,7 +4323,7 @@ public String getBandwidthPrices() {
try {
return chainBaseManager.getDynamicPropertiesStore().getBandwidthPriceHistory();
} catch (Exception e) {
logger.error("getBandwidthPrices failed, error is {}", e.getMessage());
logger.error("GetBandwidthPrices failed", e);
}

return null;
Expand Down Expand Up @@ -4444,7 +4444,7 @@ public String getMemoFeePrices() {
try {
return chainBaseManager.getDynamicPropertiesStore().getMemoFeeHistory();
} catch (Exception e) {
logger.error("getMemoFeePrices failed, error is {}", e.getMessage());
logger.error("GetMemoFeePrices failed", e);
}
return null;
}
Expand Down

0 comments on commit 1a33965

Please sign in to comment.