mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user