Skip to content

Conversation

kwen2501
Copy link
Contributor

@kwen2501 kwen2501 commented Sep 12, 2025

Accepted values:
ERROR, WARN, INFO, DEBUG

Default value:
WARN

@kwen2501 kwen2501 requested a review from d4l3k September 12, 2025 16:15
@meta-cla meta-cla bot added the CLA Signed label Sep 12, 2025
@kwen2501 kwen2501 requested a review from fduwjj September 12, 2025 16:15
Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

const char* level = getenv("GLOO_LOG_LEVEL");
// Defaults to ERROR.
if (level == nullptr) {
log_level = LogLevel::ERROR;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this match PyTorch (which I think is WARN?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You got it!

return log_level;
}

const char* level = getenv("GLOO_LOG_LEVEL");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the info logs are currently very important for debugging production jobs. Can we also check LOGLEVEL and use that value if GLOO_LOG_LEVEL isn't set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, what and where is LOGLEVEL? I don't have enough context.

Copy link
Contributor

@fduwjj fduwjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for gloo you need to import it into fbcode and land. We don't have a bot to merge IIUC

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

Successfully merging this pull request may close these issues.

3 participants