From 0c63cb98f570fa2ff48007f1c7c3677b6e1bfbee Mon Sep 17 00:00:00 2001 From: Hind Montassif Date: Thu, 12 Dec 2024 10:32:47 +0100 Subject: [PATCH] Encrypt token when displayed --- libmamba/src/core/package_fetcher.cpp | 4 ++-- libmamba/src/download/downloader.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmamba/src/core/package_fetcher.cpp b/libmamba/src/core/package_fetcher.cpp index c960f73178..cda35b1be4 100644 --- a/libmamba/src/core/package_fetcher.cpp +++ b/libmamba/src/core/package_fetcher.cpp @@ -106,8 +106,8 @@ namespace mamba { caches.clear_query_cache(m_package_info); // need to download this file - LOG_DEBUG << "Adding '" << name() << "' to download targets from '" << channel() - << "/" << url_path() << "'"; + LOG_DEBUG << "Adding '" << name() << "' to download targets from '" + << hide_secrets(channel()) << "/" << url_path() << "'"; m_tarball_path = m_cache_path / filename(); m_needs_extract = true; m_needs_download = true; diff --git a/libmamba/src/download/downloader.cpp b/libmamba/src/download/downloader.cpp index d220301d3f..d695183b65 100644 --- a/libmamba/src/download/downloader.cpp +++ b/libmamba/src/download/downloader.cpp @@ -753,7 +753,7 @@ namespace mamba::download { Error error; error.message = std::string("Could not find mirrors for channel ") - + p_initial_request->mirror_name; + + hide_secrets(p_initial_request->mirror_name); m_attempt_results.push_back(tl::unexpected(std::move(error))); } }