openai-node
openai-node copied to clipboard
feat: add env to disable debug log
- [x] I understand that this repository is auto-generated and my pull request may not be merged
Changes being requested
Adds the ability to completely disable debug logging.
This is a stopgap, if I was requesting an actual fix it would be to implement an inversion of control, and enable the user of this sdk to specify the logger, that way this flag becomes unnecessary. This simple workaround is more than enough for my needs.
Additional context & links
#302
Can this be merged please? The solution has already been presented months ago.
Hey thanks for the PR and very sorry for the delayed response here. We've added full logging support in v5 with an environment variable to disable it https://github.com/openai/openai-node?tab=readme-ov-file#logging