Skip to content

fix(logging): support standard OPENAI_LOG levels - #3734

Open
sylvesterkaczmarek wants to merge 3 commits into
openai:mainfrom
sylvesterkaczmarek:fix/openai-log-levels-3096
Open

fix(logging): support standard OPENAI_LOG levels#3734
sylvesterkaczmarek wants to merge 3 commits into
openai:mainfrom
sylvesterkaczmarek:fix/openai-log-levels-3096

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fixes #3096.

OPENAI_LOG currently recognizes only debug and info. This change supports the standard logging levels debug, info, warning, error, and critical through a single level mapping, while preserving the existing behavior for unset or unknown values.

This lets applications suppress routine SDK request logs without having to reconfigure the openai logger in application code.

Additional context & links

Adds regression coverage asserting that each supported OPENAI_LOG value configures the openai logger at the corresponding standard-library logging level.

@sylvesterkaczmarek
sylvesterkaczmarek requested a review from a team as a code owner August 25, 2026 07:23
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.

set post and response log level

1 participant