Skip to content

Users/robrandao/logging#74

Merged
axelsrz merged 9 commits intomainfrom
users/robrandao/logging
Jul 25, 2025
Merged

Users/robrandao/logging#74
axelsrz merged 9 commits intomainfrom
users/robrandao/logging

Conversation

@rodrigobr-msft
Copy link
Contributor

This pull request introduces logging enhancements to improve traceability and debugging in the MsalAuth and AgentApplication classes. Key changes include adding debug, info, and error log statements at critical points in the code, such as during initialization, error handling, and method execution. These changes aim to provide better insights into the application's behavior and potential issues.

Logging Enhancements in MsalAuth:

  • Added a logger instance and debug logs for initialization and access token requests (__init__, get_access_token). [1] [2]
  • Introduced info logs for token acquisition methods and certificate loading in _create_client_application. [1] [2]
  • Added error logs for unsupported authentication types and URI parsing errors. [1] [2]
  • Logged debug information for resolved scopes in _resolve_scopes_list.

Logging Enhancements in AgentApplication:

  • Added a logger instance and debug logs for initialization and configuration validation (__init__). [1] [2]
  • Introduced error logs for missing or invalid configurations, such as storage and adapter requirements. [1] [2]
  • Logged debug information for registering various route handlers, including activity, message, and error handlers. [1] [2] [3]
  • Added debug logs for custom turn state factory and turn processing.

@axelsrz axelsrz merged commit 821e48f into main Jul 25, 2025
5 checks passed
@rodrigobr-msft rodrigobr-msft deleted the users/robrandao/logging branch September 18, 2025 22:30
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

Comments