Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up prod prints - Convert print to log #3667

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chethanuk
Copy link

@chethanuk chethanuk commented May 16, 2024

Title

The production logs are messy because of all the print statements. Ideally, everything should be logged using a proper logging library, not print. This repository has many print statements, but some files allow you to disable them with a verbose flag. However, this flag isn't used consistently across all files.

Even after disabling the verbose mode for the littlem, there are still many print statements. Therefore, we need to standardize the way we disable them using a single, consistent verbose flag.

Relevant issues

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 4:57am

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

What is the point of this PR ?

@chethanuk
Copy link
Author

What is the point of this PR ?

The production logs are messy because of all the print statements. Ideally, everything should be logged using a proper logging library, not print. This repository has many print statements, but some files allow you to disable them with a verbose flag. However, this flag isn't used consistently across all files.

Even after disabling the verbose mode for the littlem, there are still many print statements. Therefore, we need to standardize the way we disable them using a single, consistent verbose flag.

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