@@ -1133,6 +1133,7 @@ impl StacksChainState {
1133
1133
warn ! (
1134
1134
"Runtime error in contract analysis for {}: {:?}" ,
1135
1135
& contract_id, & other_error;
1136
+ "txid" => %tx. txid( ) ,
1136
1137
"AST rules" => %format!( "{:?}" , & ast_rules)
1137
1138
) ;
1138
1139
let receipt = StacksTransactionReceipt :: from_analysis_failure (
@@ -1187,6 +1188,7 @@ impl StacksChainState {
1187
1188
Err ( e) => match handle_clarity_runtime_error ( e) {
1188
1189
ClarityRuntimeTxError :: Acceptable { error, err_type } => {
1189
1190
info ! ( "Smart-contract processed with {}" , err_type;
1191
+ "txid" => %tx. txid( ) ,
1190
1192
"contract" => %contract_id,
1191
1193
"code" => %contract_code_str,
1192
1194
"error" => ?error) ;
@@ -1215,6 +1217,7 @@ impl StacksChainState {
1215
1217
// in 2.1 and later, this is a permitted runtime error. take the
1216
1218
// fee from the payer and keep the tx.
1217
1219
warn ! ( "Smart-contract encountered an analysis error at runtime" ;
1220
+ "txid" => %tx. txid( ) ,
1218
1221
"contract" => %contract_id,
1219
1222
"code" => %contract_code_str,
1220
1223
"error" => %check_error) ;
@@ -1230,6 +1233,7 @@ impl StacksChainState {
1230
1233
} else {
1231
1234
// prior to 2.1, this is not permitted in a block.
1232
1235
warn ! ( "Unexpected analysis error invalidating transaction: if included, this will invalidate a block" ;
1236
+ "txid" => %tx. txid( ) ,
1233
1237
"contract" => %contract_id,
1234
1238
"code" => %contract_code_str,
1235
1239
"error" => %check_error) ;
@@ -1240,6 +1244,7 @@ impl StacksChainState {
1240
1244
}
1241
1245
ClarityRuntimeTxError :: Rejectable ( e) => {
1242
1246
error ! ( "Unexpected error invalidating transaction: if included, this will invalidate a block" ;
1247
+ "txid" => %tx. txid( ) ,
1243
1248
"contract_name" => %contract_id,
1244
1249
"code" => %contract_code_str,
1245
1250
"error" => ?e) ;
0 commit comments