openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

feat: add env to disable debug log

Open vinnymac opened this issue 1 year ago • 1 comments

  • [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

vinnymac avatar Dec 11 '24 01:12 vinnymac

Can this be merged please? The solution has already been presented months ago.

JackNeto avatar Mar 15 '25 14:03 JackNeto

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

RobertCraigie avatar Jun 05 '25 16:06 RobertCraigie