Skip to content

Commit

Permalink
Rust worker memberlist logs (#1677)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
	 - Debug the memberlist
  • Loading branch information
HammadB authored Jan 24, 2024
1 parent 425cd38 commit 90eba6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/worker/src/memberlist/memberlist_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ impl CustomResourceMemberlistProvider {
match event {
Ok(event) => {
let event = event;
println!("Kube stream event: {:?}", event);
Some(event)
}
Err(err) => {
println!("Error A: {}", err);
println!("Error acquiring memberlist: {}", err);
None
}
}
Expand Down Expand Up @@ -194,6 +195,7 @@ impl Handler<Option<MemberListKubeResource>> for CustomResourceMemberlistProvide
) {
match event {
Some(memberlist) => {
println!("Memberlist event in CustomResourceMemberlistProvider. Name: {:?}. Members: {:?}", memberlist.metadata.name, memberlist.spec.members);
let name = match &memberlist.metadata.name {
Some(name) => name,
None => {
Expand Down

0 comments on commit 90eba6a

Please sign in to comment.