From 447d862fd1c5008be9504a364187bb9bbb65dcf8 Mon Sep 17 00:00:00 2001 From: Ben Lovell Date: Mon, 5 Jan 2026 16:17:38 +0100 Subject: [PATCH] chore: print all env vars in one go --- crates/tower-runtime/src/local.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/tower-runtime/src/local.rs b/crates/tower-runtime/src/local.rs index 5119b086..ee4968e2 100644 --- a/crates/tower-runtime/src/local.rs +++ b/crates/tower-runtime/src/local.rs @@ -441,20 +441,20 @@ fn make_env_vars( debug!(ctx: &ctx, "converting {} env variables", (params.len() + secs.len())); for (key, value) in secs.into_iter() { - debug!(ctx: &ctx, "adding key {}", make_env_var_key(&key)); res.insert(make_env_var_key(&key), value.to_string()); } for (key, value) in params.into_iter() { - debug!(ctx: &ctx, "adding key {}", make_env_var_key(&key)); res.insert(key.to_string(), value.to_string()); } for (key, value) in other_env_vars.into_iter() { - debug!(ctx: &ctx, "adding key {}", &key); res.insert(key.to_string(), value.to_string()); } + let added_keys = res.keys().map(|s| &**s).collect::>().join(", "); + debug!(ctx: &ctx, "added keys {}", &added_keys); + // We also need a PYTHONPATH that is set to the current working directory to help with the // dependency resolution problem at runtime. let pythonpath = cwd.to_string_lossy().to_string();