From 5ee11baa2b388e5fa69314cd3541abadfbce3b50 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 Dec 2023 00:36:04 -0500 Subject: Set conda to quiet mode when verbosity is not toggled --- src/conda.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/conda.c b/src/conda.c index 6e72a87..6f76e32 100644 --- a/src/conda.c +++ b/src/conda.c @@ -158,10 +158,16 @@ int conda_activate(const char *root, const char *env_name) { } void conda_setup_headless() { + if (globals.verbose) { + conda_exec("config --system --set quiet false"); + } else { + // Not verbose, so squelch conda's noise + conda_exec("config --system --set quiet true"); + } + // Configure conda for headless CI conda_exec("config --system --set auto_update_conda false"); conda_exec("config --system --set always_yes true"); - conda_exec("config --system --set quiet true"); conda_exec("config --system --set rollback_enabled false"); conda_exec("config --system --set report_errors false"); -- cgit