File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 2121 let mut event_rx = event_rx;
2222 while let Some ( event) = event_rx. recv ( ) . await {
2323 if let Err ( e) = publisher. publish ( event) . await {
24- error ! ( error = %e, "Failed to publish bundle event" ) ;
24+ error ! ( error = %e, "failed to publish bundle event" ) ;
2525 }
2626 }
2727 } ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl KafkaBundleEventPublisher {
4040 bundle_id = %bundle_id,
4141 topic = %self . topic,
4242 payload_size = payload. len( ) ,
43- "Successfully published event"
43+ "successfully published event"
4444 ) ;
4545 Ok ( ( ) )
4646 }
@@ -49,7 +49,7 @@ impl KafkaBundleEventPublisher {
4949 bundle_id = %bundle_id,
5050 topic = %self . topic,
5151 error = %err,
52- "Failed to publish event"
52+ "failed to publish event"
5353 ) ;
5454 Err ( anyhow:: anyhow!( "Failed to publish event: {err}" ) )
5555 }
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ impl EventReader for KafkaAuditLogReader {
104104 Ok ( event_result)
105105 }
106106 Err ( e) => {
107- println ! ( "received error {e:?}" ) ;
108107 error ! ( error = %e, "Error receiving message from Kafka" ) ;
109108 sleep ( Duration :: from_secs ( 1 ) ) . await ;
110109 Err ( e. into ( ) )
Original file line number Diff line number Diff line change @@ -285,7 +285,13 @@ impl<Q: MessageQueue + 'static> IngressApiServer for IngressService<Q> {
285285 } ) ;
286286 }
287287
288- self . send_audit_event ( & accepted_bundle, transaction. tx_hash ( ) ) ;
288+ debug ! (
289+ message = "processed transaction" ,
290+ bundle_hash = %bundle_hash,
291+ transaction_hash = %transaction. tx_hash( ) ,
292+ ) ;
293+
294+ self . send_audit_event ( & accepted_bundle, accepted_bundle. bundle_hash ( ) ) ;
289295
290296 self . metrics
291297 . send_raw_transaction_duration
@@ -431,7 +437,7 @@ impl<Q: MessageQueue> IngressService<Q> {
431437 } ;
432438 if let Err ( e) = self . audit_channel . send ( audit_event) {
433439 warn ! (
434- message = "Failed to send audit event" ,
440+ message = "failed to send audit event" ,
435441 bundle_hash = %bundle_hash,
436442 error = %e
437443 ) ;
You can’t perform that action at this time.
0 commit comments