Skip to content

Commit

Permalink
More rust logs (#1679)
Browse files Browse the repository at this point in the history
More logs
  • Loading branch information
HammadB authored Jan 24, 2024
1 parent ffbb69d commit 6c835ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/worker/src/ingest/ingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ impl Component for PulsarIngestTopic {
let stream = stream.then(|result| async {
match result {
Ok(msg) => {
println!(
"PulsarIngestTopic received message with id: {:?}",
msg.message_id
);
// Convert the Pulsar Message to an EmbeddingRecord
let proto_embedding_record = msg.deserialize();
let id = msg.message_id;
Expand All @@ -336,12 +340,14 @@ impl Component for PulsarIngestTopic {
}
Err(err) => {
// TODO: Handle and log
println!("PulsarIngestTopic received error while performing conversion: {:?}", err);
}
}
None
}
Err(err) => {
// TODO: Log an error
println!("PulsarIngestTopic received error: {:?}", err);
// Put this on a dead letter queue, this concept does not exist in our
// system yet
None
Expand Down

0 comments on commit 6c835ec

Please sign in to comment.