chore(linux-client): print resources with tracing::debug (#4658)

Unfortunately I couldn't make it only happen once. This helps with
debugging service accounts, where DNS bugs look the same as forgetting
to enable a policy.

Closes #4657
This commit is contained in:
Reactor Scram
2024-04-17 20:04:45 -05:00
committed by GitHub
parent 6da6fc8569
commit 46baa42424

View File

@@ -180,6 +180,14 @@ impl Callbacks for CallbackHandler {
std::process::exit(1);
}
fn on_update_resources(&self, resources: Vec<connlib_client_shared::ResourceDescription>) {
// See easily with `export RUST_LOG=firezone_headless_client=debug`
tracing::debug!(len = resources.len(), "Printing the resource list one time");
for resource in &resources {
tracing::debug!(?resource);
}
}
}
fn get_system_default_resolvers_resolv_conf() -> Result<Vec<IpAddr>> {