Ignoring specific warnings #9689
Unanswered
PatrykKuniczak
asked this question in
Help
Replies: 1 comment 2 replies
-
It doesn't sound like this covers everything you're looking for, but many messages can be suppressed with environment variables: https://turbo.build/repo/docs/reference/options-overview#messages |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Currently, TurboRepo logs all warnings to the console, which can clutter the output when certain warnings are unnecessary or irrelevant for a specific workflow.
For example, when setting daemon: false in the configuration, the warning
daemon is required for watch, ignoring request to disable daemon for turborepo
is displayed.In some cases, this warning is expected, and its repeated appearance can make the logs harder to read, especially in CI/CD environments or when debugging other issues.
Additional information
Proposed Solution
Providing an option in the configuration file (e.g., turbo.json) to ignore specific warnings by their content or a warning code.
npx turbo run <task> --suppress-warning-code="TURBO001"
or by message:
npx turbo run <task> --suppress-warning="daemon is required for watch"
This feature would be particularly useful in scenarios where warnings are acknowledged but not actionable, such as enforced behaviors (daemon: false in watch mode) or specific environment configurations (e.g., CI pipelines).
Suppressing these warnings without suppressing all logs or warnings entirely (via --quiet) would provide a more granular control over logging behavior.
Beta Was this translation helpful? Give feedback.
All reactions