fix(logging): support standard OPENAI_LOG levels (#3734)
<!-- Thank you for contributing to this project! --> <!-- The code in this repository is all auto-generated, and is not meant to be edited manually. --> <!-- We recommend opening an Issue instead, but you are still welcome to open a PR to share for --> <!-- an improvement if you wish, just note that we are unlikely to merge it as-is. --> - [x] 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. --------- Co-authored-by: Marcus Wood <marcuswood@openai.com>
S
Sylvester Kaczmarek committed
44000e0fc5e11692663045d6183568ff3ec32736
Parent: e12b81d
Committed by GitHub <noreply@github.com>
on 9/14/2026, 9:53:53 PM