venkateshwaracholan opened a new issue, #4780:
URL: https://github.com/apache/polaris/issues/4780
### Describe the bug
### Summary
When running the Polaris CLI with `--debug`, request logging is enabled only
after the API client has been created. Since OAuth token exchange occurs during
API client construction, the initial authentication request is never included
in debug output.
As a result, users troubleshooting authentication failures cannot see the
OAuth token request that often contains the most useful debugging information.
### Affected File
`client/python/apache_polaris/cli/polaris_cli.py`
### Current Behavior
The current flow is effectively:
```python
api_client = (
ApiClientBuilder(
options,
direct_authentication=PolarisCli.DIRECT_AUTHENTICATION_ENABLED,
).get_api_client()
)
if options.debug:
PolarisCli._enable_api_request_logging()
### To Reproduce
_No response_
### Actual Behavior
_No response_
### Expected Behavior
_No response_
### Additional context
_No response_
### System information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]