Skip to content

Conversation

@Harshvardhan-To1
Copy link
Owner

Replace all print() statements with logging calls and add a NullHandler to the top-level logger to allow downstream users to manage and filter library logs.

This change prevents bitsandbytes from writing directly to stdout/stderr from library code paths, making its logging opt-in. The CLI entrypoint (python -m bitsandbytes) now configures logging only for its run, respecting the BNB_LOG_LEVEL environment variable.


Open in Cursor Open in Web

Co-authored-by: harshvardhan.yashvardhan <harshvardhan.yashvardhan@gmail.com>
@cursor
Copy link

cursor bot commented Dec 31, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@Harshvardhan-To1 Harshvardhan-To1 marked this pull request as ready for review December 31, 2025 16:10
@Harshvardhan-To1 Harshvardhan-To1 merged commit 0ef633f into main Dec 31, 2025
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.

3 participants