'CYPRESS_NO_COMMAND_LOG=1 while running Cypress in headless mode

I am trying to disable logging in cypress by setting NO_COMMAND_LOG=1 in env file (cypress.env.json). It works in headed mode (cypress runner), but doesn't seem to work in headless mode. I am using npx cypress open. Tried running via package.json as well using npm run cy:run, no luck either. Am I missing something in headless mode? Any pointers to disable the logs in headless mode will be very helpful.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source