Skip to content

Commit

Permalink
update log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajerin committed Aug 26, 2024
1 parent 62a78f7 commit 58b75c2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tembo-operator/src/dedicated_networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub async fn reconcile_dedicated_networking(
})?;

if dedicated_networking.includeStandby {
info!(
debug!(
"Handling standby service ingress for CoreDB instance: {}",
cdb.name_any()
);
Expand All @@ -97,7 +97,7 @@ pub async fn reconcile_dedicated_networking(
e
})?;
} else {
info!(
debug!(
"Standby service is not included. Deleting standby service for CoreDB instance: {}",
cdb.name_any()
);
Expand All @@ -109,7 +109,7 @@ pub async fn reconcile_dedicated_networking(
})?;
}
} else {
info!(
debug!(
"Dedicated networking is disabled. Deleting services and ingress routes for CoreDB instance: {}",
cdb.name_any()
);
Expand All @@ -129,13 +129,13 @@ pub async fn reconcile_dedicated_networking(
})?;
}
} else {
info!(
debug!(
"Dedicated networking is not configured for CoreDB instance: {}",
cdb.name_any()
);
}

info!(
debug!(
"Completed reconciliation of dedicated networking for CoreDB instance: {} in namespace: {}",
cdb.name_any(),
ns
Expand Down Expand Up @@ -168,7 +168,7 @@ async fn reconcile_dedicated_networking_network_policies(
.collect::<Vec<String>>();

let policy_name = format!("{}-allow-nlb", cdb_name);
debug!(
info!(
"Applying network policy: {} in namespace: {} to allow traffic from CIDRs: {:?}",
policy_name, namespace, cidr_list
);
Expand Down Expand Up @@ -222,7 +222,7 @@ async fn reconcile_dedicated_networking_network_policies(
OperatorError::NetworkPolicyError(format!("Failed to apply network policy: {:?}", e))
})?;

debug!(
info!(
"Successfully applied network policy: {} in namespace: {}",
policy_name, namespace
);
Expand Down Expand Up @@ -264,7 +264,7 @@ async fn reconcile_dedicated_networking_service(
};
let lb_internal = if is_public { "false" } else { "true" };

debug!(
info!(
"Applying Service: {} in namespace: {} with type: {} and scheme: {}",
service_name, namespace, service_type, lb_scheme
);
Expand Down Expand Up @@ -375,7 +375,7 @@ async fn reconcile_dedicated_networking_service(
OperatorError::ServiceError(format!("Failed to apply service: {:?}", e))
})?;

debug!(
info!(
"Successfully applied service: {} in namespace: {}",
service_name, namespace
);
Expand Down Expand Up @@ -406,13 +406,13 @@ async fn delete_dedicated_networking_service(

let svc_api: Api<Service> = Api::namespaced(client, namespace);

debug!(
info!(
"Checking if service: {} exists in namespace: {} for deletion",
service_name, namespace
);

if svc_api.get(&service_name).await.is_ok() {
info!(
debug!(
"Service: {} exists in namespace: {}. Proceeding with deletion.",
service_name, namespace
);
Expand Down

0 comments on commit 58b75c2

Please sign in to comment.