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

chore: don't log the contract source on deploy error #5736

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions stackslib/src/chainstate/stacks/db/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,6 @@ impl StacksChainState {
info!("Smart-contract processed with {}", err_type;
"txid" => %tx.txid(),
"contract" => %contract_id,
"code" => %contract_code_str,
"error" => ?error);
// When top-level code in a contract publish causes a runtime error,
// the transaction is accepted, but the contract is not created.
Expand Down Expand Up @@ -1345,7 +1344,6 @@ impl StacksChainState {
info!("Smart-contract encountered an analysis error at runtime";
"txid" => %tx.txid(),
"contract" => %contract_id,
"code" => %contract_code_str,
"error" => %check_error);

let receipt =
Expand All @@ -1361,7 +1359,6 @@ impl StacksChainState {
warn!("Unexpected analysis error invalidating transaction: if included, this will invalidate a block";
"txid" => %tx.txid(),
"contract" => %contract_id,
"code" => %contract_code_str,
"error" => %check_error);
return Err(Error::ClarityError(clarity_error::Interpreter(
InterpreterError::Unchecked(check_error),
Expand All @@ -1372,7 +1369,6 @@ impl StacksChainState {
error!("Unexpected error invalidating transaction: if included, this will invalidate a block";
"txid" => %tx.txid(),
"contract_name" => %contract_id,
"code" => %contract_code_str,
"error" => ?e);
return Err(Error::ClarityError(e));
}
Expand Down
Loading