Skip to content

Commit

Permalink
Commands: fix messaging (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
IceKhan13 authored Oct 18, 2021
1 parent 279ad79 commit 618a265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecosystem/commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ def subprocess_execute(
) as process:
logs = []
while True:
output = str(process.stdout.readline())
output = str(process.stdout.readline().decode())
logger.info(output.strip())
logs.append(output.strip())
return_code = process.poll()
if return_code is not None:
logger.info("RETURN CODE: %s}", return_code)
logger.info("[RETURN CODE]: %s", return_code)
for output in process.stdout.readlines():
logger.info(str(output).strip())
logs.append(str(output).strip())
Expand Down

0 comments on commit 618a265

Please sign in to comment.