Skip to content

Commit

Permalink
Even more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed May 6, 2024
1 parent df7c6ab commit d6eacdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ def system(
t = subprocess.Popen(shlex.split(command), stdout=stream, stderr=stream)

except FileNotFoundError as e:
targetstr = ",".join(glob.glob("/binaries/xtb/*"))
logger.error(
f'Could not run command "{command}" - executable not found (msg: {str(e)}), os.environ is {str(os.environ)}'
f'Could not run command "{command}" - executable not found (msg: {str(e)}), os.environ is {str(os.environ)} and target dir contains {targetstr}'
)
calc.error_message = f"{command.split()[0]} is not found"
calc.date_finished = timezone.now()
Expand Down

0 comments on commit d6eacdb

Please sign in to comment.