-
Notifications
You must be signed in to change notification settings - Fork 8
chore: colourize the logs only when LOG_LEVEL == "DEBUG" #818
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
base: main
Are you sure you want to change the base?
Conversation
📜 Docstring Coverage ReportRESULT: PASSED (minimum: 30.0%, actual: 75.5%) Detailed Coverage Report |
📦 Trivy Vulnerability Scan Results
Report Summary
Scan Result Details✅ No vulnerabilities found during the scan for |
📦 Trivy Secret Scan Results
Report Summary
Scan Result Details✅ No secrets found during the scan for |
|
🛠 Docs available at: https://k.atlan.dev/application-sdk/log-coloring-through-env |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/818 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the logging behavior to conditionally enable log colorization based on the LOG_LEVEL environment variable. Colorization is now only enabled when LOG_LEVEL is set to "DEBUG", while previously logs were always colorized.
Key Changes
- Added conditional logic to set the
colorizeparameter based on LOG_LEVEL - Colorization is enabled only for DEBUG level, disabled for all other log levels (INFO, WARNING, ERROR, etc.)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]> Signed-off-by: Abhishek Agrawal <[email protected]>
📦 Example workflows test results
|
📦 Example workflows test results
|
📦 Example workflows test results
|
Changelog
Additional context (e.g. screenshots, logs, links)
Checklist
Copyleft License Compliance
Note
Use colored log format only when LOG_LEVEL is DEBUG; otherwise emit plain, non-colorized logs.
atlan_format_str_color) and plain (atlan_format_str_plain) formats and select based onLOG_LEVEL.colorize=Trueonly forDEBUG; use plain format andcolorize=Falsefor other levels.ACTIVITY,METRIC,TRACING) and sink setup unchanged.Written by Cursor Bugbot for commit d2ad324. This will update automatically on new commits. Configure here.