From 4fca8a5baeb059407fb0db997547be3a8dcd6af2 Mon Sep 17 00:00:00 2001 From: zeroweb91 Date: Wed, 18 Apr 2018 19:31:42 -0500 Subject: [PATCH] Fix message outputting condition --- core/ipfs/basic_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/ipfs/basic_commands.py b/core/ipfs/basic_commands.py index 585e87b..465918c 100644 --- a/core/ipfs/basic_commands.py +++ b/core/ipfs/basic_commands.py @@ -40,6 +40,7 @@ class BasicCommands: def __init__(self, kamina_process: KaminaProcess): self.settings = kamina_process.conf self.verbose = self.settings["troubleshoot"]["verbose"] + self.debug = self.settings["troubleshoot"]["debug"] self.logger = logging.getLogger("kamina") def setup_community_node(self, install_ipfs: bool) -> None: @@ -138,7 +139,7 @@ class BasicCommands: response = requests.get(download_url, stream=True) total_size = int(response.headers.get("content-length", 0)) with open(temp_dl_file_location, "wb") as file: - if self.verbose: + if self.debug: # Show a nice progress bar pbar = tqdm(total=total_size, unit="B", unit_scale=True) for data in response.iter_content(1024):