Skip to content

Write to stdout and stderr separately #294

Description

@kinow

Hi, I configured a Slurm job with err & out files, but only the err file had output written after running the CWL Conformance tests (kinow/cwl-mpi#20).

I think it's because we are using the Python StreamHandler,

logger.addHandler(logging.StreamHandler())
, without specifying the stream to write to.

Image

Returns a new instance of the StreamHandler class. If stream is specified, the instance will use it for logging output; otherwise, sys.stderr will be used.

It's a harmless issue, but it would still be nice to organize the log.info / error output separately for some users.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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