You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is not seeing the request/response being logged after calling setDebugging to True. One possible solution would be to not have the null check in the above link and always rebuild the http client, but that may not be desired.
openapi-generator version
Latest master commit
OpenAPI declaration file content or url
Generation Details
No specific spec needed, this is generated currently in the existing petStore jersey2 example.
Steps to reproduce
Related issues/PRs
I couldn't find another similar reported issue.
Suggest a fix
More details in the Description section.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Setting the debug option in the ApiClient doesn't fully enable debug logging.
There is a comment here about rebuilding the client when setDebugging is enabled - https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache#L603. However this continues to use the previously built clientConfig - https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache#L1239 that was initialized from the constructor.
The result is not seeing the request/response being logged after calling
setDebugging
to True. One possible solution would be to not have the null check in the above link and always rebuild the http client, but that may not be desired.openapi-generator version
Latest master commit
OpenAPI declaration file content or url
Generation Details
No specific spec needed, this is generated currently in the existing petStore jersey2 example.
Steps to reproduce
Related issues/PRs
I couldn't find another similar reported issue.
Suggest a fix
More details in the Description section.
The text was updated successfully, but these errors were encountered: