-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[FEATURE] Add Environment Variable DISABLE_STDOUT to Suppress Terminal Output #6060
Copy link
Copy link
Closed
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.
Milestone
Description
Describe your feature request
Add an option to completely suppress stdout output by introducing an environment variable DISABLE_STDOUT. When set to "true" or "1", this option ensures that no output is printed to the terminal.
Describe the use case of the feature
This feature is useful in scenarios where a clean and quiet terminal is required, such as benchmarking or automated testing (w/o SDK). For instance, when running a benchmark on RunEnumeration, suppressing event output helps in collecting accurate metrics without unnecessary clutter.
Describe alternatives you've considered
- Redirecting
types.Options.Outputto/dev/null: This approach does not fully suppress output, likely due to the presence of a multi-writer handling the output. - Manually filtering output after execution: This is impractical and adds unnecessary complexity.
- Modifying the code to bypass writing to stdout: While possible, it would require changes in multiple places, making it less flexible than a simple environment variable.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.