Skip to content

Commit

Permalink
BF: iohub server prints / exceptions not appearing in Runner
Browse files Browse the repository at this point in the history
fixes / closes #2766. iohub stderr is now redirected to psychopy runner stdout, which displays in the Running output area.
  • Loading branch information
isolver committed Mar 19, 2021
1 parent 3315e4d commit 30d0705
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion psychopy/iohub/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,11 @@ def _startServer(self, ioHubConfig=None, ioHubConfigAbsPath=None):

self._server_process = subprocess.Popen(subprocessArgList,
env=envars,
cwd=IOHUB_DIRECTORY)
cwd=IOHUB_DIRECTORY,
# set sub process stderr ro be stdout so PsychoPy Runner
# shows errors from iohub
stderr=subprocess.STDOUT,
)

# Get iohub server pid and psutil process object
# for affinity and process priority setting.
Expand Down

0 comments on commit 30d0705

Please sign in to comment.