Skip to content

init_process_group changes the behavior of logging #51428

@char256

Description

@char256

When running init_process_group, Python library's logging is changed, as I show in the screenshot
Screenshot from 2021-01-31 10-17-57
This happens when I was using OpenSelfSup, a library made by CUHK, and the log disappeared. Because the framework use 'hasHandlers' function to judge whether the logging level is 'WARNING' or 'INFO', this behavior makes the logger level be 'WARNING' , all 'INFO' disappeared.
I don't know this is a bug or I did things wrong,
When I changed the source code version to 1.7.1 and recompile it again, this behavior was fixed.

Enviroment

pytorch version: compiled from source, master branch
CUDA used to build Pytorch: 11.2
Python: 3.8.5
OS: ubuntu 2004
GPU: GeForce RTX 3090

Thanks so much for your attention.

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu

Metadata

Metadata

Assignees

No one assigned

    Labels

    oncall: distributedAdd this issue/PR to distributed oncall triage queue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions