Skip to content

Commit 918a79b

Browse files
authored
Merge pull request #5736 from stacks-network/chore/dont-log-contract
chore: don't log the contract source on deploy error
2 parents 43d4ee9 + b691268 commit 918a79b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

stackslib/src/chainstate/stacks/db/transactions.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,6 @@ impl StacksChainState {
13001300
info!("Smart-contract processed with {}", err_type;
13011301
"txid" => %tx.txid(),
13021302
"contract" => %contract_id,
1303-
"code" => %contract_code_str,
13041303
"error" => ?error);
13051304
// When top-level code in a contract publish causes a runtime error,
13061305
// the transaction is accepted, but the contract is not created.
@@ -1345,7 +1344,6 @@ impl StacksChainState {
13451344
info!("Smart-contract encountered an analysis error at runtime";
13461345
"txid" => %tx.txid(),
13471346
"contract" => %contract_id,
1348-
"code" => %contract_code_str,
13491347
"error" => %check_error);
13501348

13511349
let receipt =
@@ -1361,7 +1359,6 @@ impl StacksChainState {
13611359
warn!("Unexpected analysis error invalidating transaction: if included, this will invalidate a block";
13621360
"txid" => %tx.txid(),
13631361
"contract" => %contract_id,
1364-
"code" => %contract_code_str,
13651362
"error" => %check_error);
13661363
return Err(Error::ClarityError(clarity_error::Interpreter(
13671364
InterpreterError::Unchecked(check_error),
@@ -1372,7 +1369,6 @@ impl StacksChainState {
13721369
error!("Unexpected error invalidating transaction: if included, this will invalidate a block";
13731370
"txid" => %tx.txid(),
13741371
"contract_name" => %contract_id,
1375-
"code" => %contract_code_str,
13761372
"error" => ?e);
13771373
return Err(Error::ClarityError(e));
13781374
}

0 commit comments

Comments
 (0)