Skip to content

Commit

Permalink
Debug PRT
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 19, 2024
1 parent 6b88e8e commit 49d1a93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions broker/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ def run(self, command, demux=True, **kwargs):
# Containers don't handle pipes, redirects, etc well in a bare exec_run
command = f"/bin/bash -c '{command}'"
result = self._cont_inst._cont_inst.exec_run(command, **kwargs)
logger.info(f"tpapaioa ContainerSession result 1: {command=} {result=}")
if demux:
result = helpers.Result.from_duplexed_exec(result, self.runtime)
logger.info(f"tpapaioa ContainerSession result demux: {result=}")
else:
result = helpers.Result.from_nonduplexed_exec(result)
logger.info(f"tpapaioa ContainerSession result nonduplex: {result=}")
return result

def disconnect(self):
Expand Down

0 comments on commit 49d1a93

Please sign in to comment.