Verified Commit 7017f302 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

more verbose logging

parent ab6fe8c2
......@@ -9,7 +9,7 @@ use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
use k8s_openapi::{Metadata, NamespaceResourceScope, Resource};
use kube::api::ListParams;
use kube::{Api, Client};
use log::info;
use log::{debug, info};
use serde::{Deserialize, Serialize};
fn parse_config() -> ArgMatches<'static> {
......@@ -160,8 +160,12 @@ async fn main() -> Result<()> {
let list_params = ListParams::default();
let pods_list = pods.list(&list_params).await.context("listing pods")?;
for pod in pods_list {
println!("Pod detected: {}", pod.metadata.name.unwrap());
println!(
"Pod detected: {}",
pod.metadata.name.expect("No pod name available")
);
}
debug!("Sleeping for {} minute/s", update_interval);
std::thread::sleep(Duration::from_secs(update_interval * 60));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment