Skip to content

Commit

Permalink
change debug enriches, not confuse user
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Feb 13, 2022
1 parent bb3ef8a commit 9f8940d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyerge/tmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def emerge(arguments: List[str], build=True) -> Tuple[bytes, bytes]:
cmd = f"sudo /usr/bin/emerge --nospinner {' '.join(arguments)}"
if build:
return_code, stderr = utils.run_cmd(cmd, use_system=True)
debug(f'RC: {return_code.decode("utf-8")}, Errors: {stderr.decode("utf-8")}')
debug(f'RC: {return_code.decode("utf-8")}, stderr: {stderr.decode("utf-8")}')
return return_code, stderr
output, stderr = utils.run_cmd(cmd)
return output, stderr
Expand All @@ -42,7 +42,7 @@ def check_upd(local_chk: bool) -> None:
utils.run_cmd(f'sudo eix-sync >> {TMPLOGFILE} > {DEVNULL}', use_system=True)
info('Checking updates...')
output, error = emerge('-pvNDu --color n --with-bdeps=y @world'.split(), build=False)
debug(f'Error: {error.decode("utf-8")}')
debug(f'stderr: {error.decode("utf-8")}')
log.write(output.decode('utf-8'))
log.write(error.decode('utf-8'))

Expand Down Expand Up @@ -80,8 +80,8 @@ def deep_clean(args: List[str], opts: Namespace, return_code: bytes) -> None:
if not int(return_code) and not pretend and world:
output, error = emerge(['-pc'], build=False)
info('Deep clean')
info(f'Output details:{output.decode("utf-8")}')
debug(f'Errors details:{error.decode("utf-8")}')
info(f'output details:{output.decode("utf-8")}')
debug(f'stderr details:{error.decode("utf-8")}')
deep_run(opts, output)


Expand Down

0 comments on commit 9f8940d

Please sign in to comment.