Skip to content

Removing logger from ApplicationOptions#443

Merged
rodrigobr-msft merged 7 commits into
mainfrom
users/robrandao/app-options
Jul 10, 2026
Merged

Removing logger from ApplicationOptions#443
rodrigobr-msft merged 7 commits into
mainfrom
users/robrandao/app-options

Conversation

@rodrigobr-msft

Copy link
Copy Markdown
Contributor

It doesn't get used, and it doesn't need to be used. Users should instead rely on Python's logging module directly, unless we see a specific need for special handling.

Copilot AI review requested due to automatic review settings July 7, 2026 15:40
@rodrigobr-msft
rodrigobr-msft marked this pull request as ready for review July 7, 2026 15:41
@rodrigobr-msft
rodrigobr-msft requested a review from a team as a code owner July 7, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes the unused logger field from ApplicationOptions, steering consumers toward using Python’s standard logging module directly, and applies minor formatting cleanups in AgentApplication error raising.

Changes:

  • Removed the ApplicationOptions.logger dataclass field (and other dead/commented fields nearby).
  • Reformatted several raise ApplicationError(...) statements for readability/consistency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/app_options.py Removes the unused logger option from ApplicationOptions (public API surface).
libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py Minor formatting-only adjustments to ApplicationError raising style.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 7, 2026 15:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (2)

libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py:51

  • AgentApplication now imports _log_app_config from . _utils, but there is no _utils module under microsoft_agents.hosting.core.app in this repo. This will raise ModuleNotFoundError at import time.

logger = logging.getLogger(__name__)

libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/agent_application.py:110

  • _log_app_config is called here but is not defined anywhere in the package (and the import currently points to a non-existent module). Either implement the helper or revert to the prior inline debug logging.
        if not options:
            # TODO: consolidate configuration story
            # Take the options from the kwargs and create an ApplicationOptions instance
            option_kwargs = dict(

Copilot AI review requested due to automatic review settings July 7, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings July 7, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@rodrigobr-msft
rodrigobr-msft enabled auto-merge (squash) July 7, 2026 16:40
Copilot AI review requested due to automatic review settings July 8, 2026 20:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings July 10, 2026 17:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings July 10, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@rodrigobr-msft
rodrigobr-msft merged commit c99fe91 into main Jul 10, 2026
12 checks passed
@rodrigobr-msft
rodrigobr-msft deleted the users/robrandao/app-options branch July 10, 2026 17:45
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