-
Notifications
You must be signed in to change notification settings - Fork 366
automatically configure logging/log level when the module loads #1115
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
Conversation
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 adds automatic logging configuration that executes when the kagent.core and kagent.adk modules are imported. The changes configure logging based on the LOG_LEVEL environment variable with a default of "INFO".
Key Changes:
- Added
configure_logging()function tokagent.core.__init__.pythat auto-executes on import - Added duplicate
configure_logging()function tokagent.adk._a2a.pythat also auto-executes on import - Removed the previous
configure_logging()function fromkagent.adk.cli.pyand updated imports to use the version from_a2a.py
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| python/packages/kagent-core/src/kagent/core/init.py | Adds configure_logging() function with auto-execution at module import time |
| python/packages/kagent-adk/src/kagent/adk/_a2a.py | Adds duplicate configure_logging() function with auto-execution at module import time |
| python/packages/kagent-adk/src/kagent/adk/cli.py | Removes old logging configuration and imports from _a2a module instead |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5a994c0 to
c385d33
Compare
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
460e25f to
e950afc
Compare
No description provided.