temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
247 stars 34 forks source link

[Feature Request] `--log-level never` should also mute startup output #623

Closed Cyberuben closed 1 month ago

Cyberuben commented 1 month ago

Is your feature request related to a problem? Please describe.

We run temporal server start-dev as part of our CI (using the TypeScript SDK), which runs many test suites at once. Due to the Temporal server outputting logs in a separate process, we are unable to suppress these logs via TypeScript.

Our logs are currently polluted with logs from the Temporal server that we wish we could mute.

PASS src/<PATH>/<FILE>.e2e-spec.ts (25.468 s)
Temporal server: localhost:37813
Metrics:         http://localhost:39779/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (46.691 s)
Temporal server: localhost:36349
Metrics:         http://localhost:39633/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (35.294 s)
PASS src/<PATH>/<FILE>.e2e-spec.ts (25.231 s)
Temporal server: localhost:35221
Metrics:         http://localhost:37009/metrics
Temporal server: localhost:38597
Metrics:         http://localhost:34365/metrics
Temporal server: localhost:46079
Metrics:         http://localhost:44541/metrics
Temporal server: localhost:35501
Metrics:         http://localhost:33361/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (29.676 s)
Temporal server: localhost:38247
Metrics:         http://localhost:35877/metrics
Temporal server: localhost:41931
Metrics:         http://localhost:35491/metrics
Temporal server: localhost:35751
Metrics:         http://localhost:43643/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (32.031 s)
Temporal server: localhost:42387
Metrics:         http://localhost:45761/metrics
Temporal server: localhost:35917
Metrics:         http://localhost:37703/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (21.932 s)
PASS src/<PATH>/<FILE>.e2e-spec.ts (34.201 s)
Temporal server: localhost:42607
Metrics:         http://localhost:37025/metrics
Temporal server: localhost:37147
Metrics:         http://localhost:39719/metrics
PASS src/<PATH>/<FILE>.e2e-spec.ts (258.322 s)
PASS src/<PATH>/<FILE>.e2e-spec.ts (23.063 s)
PASS src/<PATH>/<FILE>.e2e-spec.ts (35.086 s)
Temporal server: localhost:43307
Metrics:         http://localhost:42859/metrics
Temporal server: localhost:45681
Metrics:         http://localhost:41269/metrics

Describe the solution you'd like

Either mute the log output completely when passing --log-level never or add an additional argument to mute this output too.

Additional context

Cyberuben commented 1 month ago

After reading the source code I see that this is possible by using --output none.