Skip to content

logging output is hard to read in multiprocessing test cases. #182

Open
@Symmetric

Description

@Symmetric

When running tests using the mutiprocessing module, and printing to stdout/stderr, the output from different subprocesses is interleaved, making it hard to determine what's going on.

For nose2 internal logs, you get something like [DEBUG/Process-N] to disambiguate. But for logs made inside the test, this does not occur.

It looks like the most straightforward fix would be to override the nose2 logger to use the DEFAULT_LOGGING_FORMAT that's specified in multiprocessing/util.py when setting up mp.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions