Skip to content

Commit

Permalink
Merge pull request #4610 from forfreeday/feature/update_log_level
Browse files Browse the repository at this point in the history
feat(log): update log level
  • Loading branch information
forfreeday authored Aug 25, 2022
2 parents 2a34827 + e162e38 commit 2b3783d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/src/main/java/org/tron/core/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public GrpcAPI.Return broadcastTransaction(Transaction signedTransaction) {
.setMessage(ByteString.copyFromUtf8("Contract execute error : " + e.getMessage()))
.build();
} catch (AccountResourceInsufficientException e) {
logger.error(BROADCAST_TRANS_FAILED, txID, e.getMessage());
logger.warn(BROADCAST_TRANS_FAILED, txID, e.getMessage());
return builder.setResult(false).setCode(response_code.BANDWITH_ERROR)
.setMessage(ByteString.copyFromUtf8("Account resource insufficient error."))
.build();
Expand All @@ -561,17 +561,17 @@ public GrpcAPI.Return broadcastTransaction(Transaction signedTransaction) {
.setMessage(ByteString.copyFromUtf8("Dup transaction."))
.build();
} catch (TaposException e) {
logger.error(BROADCAST_TRANS_FAILED, txID, e.getMessage());
logger.warn(BROADCAST_TRANS_FAILED, txID, e.getMessage());
return builder.setResult(false).setCode(response_code.TAPOS_ERROR)
.setMessage(ByteString.copyFromUtf8("Tapos check error."))
.build();
} catch (TooBigTransactionException e) {
logger.error(BROADCAST_TRANS_FAILED, txID, e.getMessage());
logger.warn(BROADCAST_TRANS_FAILED, txID, e.getMessage());
return builder.setResult(false).setCode(response_code.TOO_BIG_TRANSACTION_ERROR)
.setMessage(ByteString.copyFromUtf8("Transaction size is too big."))
.build();
} catch (TransactionExpirationException e) {
logger.error(BROADCAST_TRANS_FAILED, txID, e.getMessage());
logger.warn(BROADCAST_TRANS_FAILED, txID, e.getMessage());
return builder.setResult(false).setCode(response_code.TRANSACTION_EXPIRATION_ERROR)
.setMessage(ByteString.copyFromUtf8("Transaction expired"))
.build();
Expand Down

0 comments on commit 2b3783d

Please sign in to comment.