Skip to content

[logs] Change print warnings to logger.warning#219

Merged
tyler-griggs merged 7 commits intoNovaSky-AI:mainfrom
CharlieFRuan:fix-0829-warnings
Aug 29, 2025
Merged

[logs] Change print warnings to logger.warning#219
tyler-griggs merged 7 commits intoNovaSky-AI:mainfrom
CharlieFRuan:fix-0829-warnings

Conversation

@CharlieFRuan
Copy link
Member

There are various places in the repo where we do print("WARNING:...") which can be annoying. This PR changes them to logger.warning().

There are still various print statements throughout the repo, but I will fix the warnings one first.

Related to #168

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a good step towards improving logging by replacing print statements with logger.warning. My review focuses on a consistent pattern across the changes: the log messages still contain a "WARNING: " prefix, which is redundant when using a leveled logger like logger.warning. I've suggested removing this prefix in all occurrences for cleaner and more idiomatic logging.

CharlieFRuan and others added 6 commits August 29, 2025 07:29
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@tyler-griggs tyler-griggs merged commit ea95a52 into NovaSky-AI:main Aug 29, 2025
3 checks passed
dzorlu referenced this pull request in fleet-ai/SkyRL Feb 4, 2026
There are various places in the repo where we do `print("WARNING:...")`
which can be annoying. This PR changes them to `logger.warning()`.

There are still various print statements throughout the repo, but I will
fix the warnings one first.

Related to NovaSky-AI#168

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants