Skip to content

Conversation

@peterj
Copy link
Collaborator

@peterj peterj commented Nov 20, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 20, 2025 00:21
Copy link
Contributor

Copilot AI left a 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 to kagent.core.__init__.py that auto-executes on import
  • Added duplicate configure_logging() function to kagent.adk._a2a.py that also auto-executes on import
  • Removed the previous configure_logging() function from kagent.adk.cli.py and 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.

@peterj peterj force-pushed the peterj/readloglevelfromenv branch from 5a994c0 to c385d33 Compare November 20, 2025 00:41
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>
@peterj peterj force-pushed the peterj/readloglevelfromenv branch from 460e25f to e950afc Compare November 24, 2025 23:34
@EItanya EItanya merged commit 8f23794 into main Nov 25, 2025
16 checks passed
@EItanya EItanya deleted the peterj/readloglevelfromenv branch November 25, 2025 15:52
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