Skip to content

Debug output not printed/stored when running BART with Python #363

@mavel101

Description

@mavel101

Hi,

since commit 10d2df3, the debug output in BART is sent to stderr instead of stdout.
This is not captured by the Python wrapper though, since stderr is only written in case of an error - see bart.py lines 193-198:

  # in case of error, print to stderr
  errcode = proc.wait()
  if errcode:
      stderr = "".join(proc.stderr.readlines())
      print(stderr)
  proc.stderr.close()

Probably the if statement should be removed here, or maybe one could check if the debug flag is set.

Marten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions