Skip to content

[FEATURE] Add Environment Variable DISABLE_STDOUT to Suppress Terminal Output #6060

@dwisiswant0

Description

@dwisiswant0

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.Output to /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

Metadata

Metadata

Assignees

Labels

Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions