Skip to content

Commit

Permalink
reduce verbosity of the .env writing code
Browse files Browse the repository at this point in the history
This was VERY verbose and distracting. Still can be re-enabled by setting
verbosity higher.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed May 1, 2024
1 parent b12066b commit d661f80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def write_values_to_env_file(values):
env_line = f"{key}{suffix}={value[i]}\n"
env_line = escape_env(env_line)
f.write(env_line)
print_err(f"wrote {env_line.strip()} to .env")
print_err(f"wrote {env_line.strip()} to .env", level=8)
else:
env_line = f"{key}={value.strip() if type(value) == str else value}\n"
env_line = escape_env(env_line)
f.write(env_line)
print_err(f"wrote {env_line.strip()} to .env")
print_err(f"wrote {env_line.strip()} to .env", level=8)
# write the user env in the form that can be easily inserted into the yml file
# using the name here so it comes from the values passed in
val = values.get("_ADSBIM_STATE_EXTRA_ENV", None)
Expand Down

0 comments on commit d661f80

Please sign in to comment.