@@ -35,7 +35,10 @@ impl SlotProcessor {
35
35
|| async move { self . _process_slot ( slot) . await } ,
36
36
|e, duration : Duration | {
37
37
let duration = duration. as_secs ( ) ;
38
- warn ! ( "Failed to process slot. Retrying in {duration} seconds… (Reason: {e})" ) ;
38
+ warn ! (
39
+ slot,
40
+ "Failed to process slot. Retrying in {duration} seconds… (Reason: {e})"
41
+ ) ;
39
42
} ,
40
43
)
41
44
. await
@@ -55,7 +58,7 @@ impl SlotProcessor {
55
58
{
56
59
Some ( block) => block,
57
60
None => {
58
- info ! ( "Skipping as there is no beacon block" ) ;
61
+ info ! ( slot , "Skipping as there is no beacon block" ) ;
59
62
60
63
return Ok ( ( ) ) ;
61
64
}
@@ -64,7 +67,10 @@ impl SlotProcessor {
64
67
let execution_payload = match beacon_block. body . execution_payload {
65
68
Some ( payload) => payload,
66
69
None => {
67
- info ! ( "Skipping as beacon block doesn't contain execution payload" ) ;
70
+ info ! (
71
+ slot,
72
+ "Skipping as beacon block doesn't contain execution payload"
73
+ ) ;
68
74
69
75
return Ok ( ( ) ) ;
70
76
}
@@ -73,7 +79,10 @@ impl SlotProcessor {
73
79
match beacon_block. body . blob_kzg_commitments {
74
80
Some ( commitments) => commitments,
75
81
None => {
76
- info ! ( "Skipping as beacon block doesn't contain blob kzg commitments" ) ;
82
+ info ! (
83
+ slot,
84
+ "Skipping as beacon block doesn't contain blob kzg commitments"
85
+ ) ;
77
86
78
87
return Ok ( ( ) ) ;
79
88
}
@@ -94,7 +103,7 @@ impl SlotProcessor {
94
103
. map_err ( |err| BackoffError :: permanent ( SlotProcessorError :: Other ( err) ) ) ?;
95
104
96
105
if tx_hash_to_versioned_hashes. is_empty ( ) {
97
- info ! ( "Skipping as execution block doesn't contain blob txs" ) ;
106
+ info ! ( slot , "Skipping as execution block doesn't contain blob txs" ) ;
98
107
99
108
return Ok ( ( ) ) ;
100
109
}
@@ -108,15 +117,15 @@ impl SlotProcessor {
108
117
{
109
118
Some ( blobs) => {
110
119
if blobs. is_empty ( ) {
111
- info ! ( "Skipping as blobs sidecar is empty" ) ;
120
+ info ! ( slot , "Skipping as blobs sidecar is empty" ) ;
112
121
113
122
return Ok ( ( ) ) ;
114
123
} else {
115
124
blobs
116
125
}
117
126
}
118
127
None => {
119
- info ! ( "Skipping as there is no blobs sidecar" ) ;
128
+ info ! ( slot , "Skipping as there is no blobs sidecar" ) ;
120
129
121
130
return Ok ( ( ) ) ;
122
131
}
@@ -152,7 +161,7 @@ impl SlotProcessor {
152
161
. await
153
162
. map_err ( SlotProcessorError :: BlobscanClient ) ?;
154
163
155
- info ! ( "Block, txs and blobs indexed successfully" ) ;
164
+ info ! ( slot , "Block, txs and blobs indexed successfully" ) ;
156
165
157
166
Ok ( ( ) )
158
167
}
0 commit comments