Skip to content

Commit 70fc702

Browse files
endothermicdevcdecker
authored andcommitted
reckless: further verbosity/squelch of pip output
1 parent 8653d12 commit 70fc702

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/reckless

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,11 @@ def _install_plugin(src: InstInfo) -> bool:
376376
if src.deps is not None:
377377
logging.debug(f'installing dependencies using {src.deps}')
378378
procedure = install_methods[src.deps]
379-
pip = Popen(procedure, cwd=plugin_path, stdout=PIPE)
379+
# Verbose output requested.
380+
if logging.root.level < logging.WARNING:
381+
pip = Popen(procedure, cwd=plugin_path)
382+
else:
383+
pip = Popen(procedure, cwd=plugin_path, stdout=PIPE, stderr=PIPE)
380384
pip.wait()
381385
if pip.returncode == 0:
382386
print('dependencies installed successfully')

0 commit comments

Comments
 (0)