Skip to content

fix(client): log exceptions during client finalization in __del__#3525

Open
ZachDreamZ wants to merge 1 commit into
openai:mainfrom
ZachDreamZ:fix/client-finalization-logging
Open

fix(client): log exceptions during client finalization in __del__#3525
ZachDreamZ wants to merge 1 commit into
openai:mainfrom
ZachDreamZ:fix/client-finalization-logging

Conversation

@ZachDreamZ

Copy link
Copy Markdown

Summary

Addresses #3428 by adding debug logging for exceptions raised during client finalization in del.

Description

Previously, exceptions raised in \SyncHttpxClientWrapper.del\ and \AsyncHttpxClientWrapper.del\ were silently swallowed via \pass. Logging them with \log.debug(..., exc_info=True)\ provides diagnostic visibility during debugging without changing runtime error flow.

Authored by Carl Andrie Ellepure (@ZachDreamZ).

@ZachDreamZ
ZachDreamZ requested a review from a team as a code owner July 22, 2026 17:51
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.

1 participant