`torrust-tracker` daemon: JSON logs on stderr and JSON startup failure
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- backend, observability
調査の方向性
Read the two referenced ADRs, then inspect the logging initializers in packages/configuration/src/v3_0_0/logging.rs, older configuration versions, and src/logging.rs, plus src/main.rs. The issue requires a maintainer decision on the public trace_style migration before implementation; inspect src/console/ci/e2e/logs_parser.rs and its tests, and search the named docs and test helpers for log readers. Done means stderr is JSON lines, stdout is empty, startup failures emit one JSON record and exit 1, and the parser and operator documentation match.
索引モデルが issue の本文から書いたものです。
説明
Part of EPIC #2758. Order 7 of 11, wave 1.
Goal
The daemon writes its tracing output as JSON lines on stderr by default and reports a startup failure as a JSON record, as the contract requires of a no-stdout-result daemon.
Background
packages/configuration/src/v3_0_0/logging.rs (and the older versions and src/logging.rs) initialize tracing_subscriber::fmt() with with_test_writer() and ANSI, which writes to stdout in the full style by default (trace_style, default Full). src/main.rs reports startup failure with eprintln!("Tracker startup failed: {error}"). The contract requires tracing on stderr as NDJSON, nothing on stdout. Maintainer decision (2026-11-06): migrate now, not deferred. This is operator-visible just after the 3.0.0 release: deployments that parse the plain text or read stdout break. The trace_style option and config schema versions are public, so decide the migration detail with the maintainer before writing code (default json versus keeping trace_style meaning, stream, ANSI, deprecation of the other styles, versioned-config handling) and record it, with an ADR if it is a material decision. The e2e runner parses the container logs in src/console/ci/e2e/logs_parser.rs; that parser must follow the new format. Search for other readers of log text (docs/benchmarking.md, container docs, tests with with_test_writer).
The contract in short: see the ADRs docs/adrs/20260519000000_define_global_cli_output_contract.md and docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md.
In scope
- Send
tracingoutput to stderr; leave stdout empty. - Make JSON the default style (or the agreed alternative) and keep the other
trace_stylevalues only if the decision keeps them. - Startup failure as one JSON record on stderr, exit
1; usage and config errors exit2if they are usage errors. - Update
logs_parser.rsand its tests; update docs, default configs and the changelog or release-note convention. - Keep test-helper logging working (
packages/test-helpers/src/logging.rs).
Out of scope
- The e2e runners' own logging (EPIC issue 10).
- Changing log levels or thresholds.
Acceptance criteria
- Running the tracker writes nothing to stdout.
- Every stderr line is a JSON object.
- A startup failure prints one JSON record and exits
1. logs_parser.rsand its tests follow the new format.- The operator-visible change is documented.
The full specification (implementation plan, verification plan, files this issue may touch) is added by the spec PR under docs/issues/open/.
- 主要言語
- Rust
- スター
- 532
- フォーク
- 56
- 平均マージ
- 11時間 20分
- マージ済み PR(30日)
- 282
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
torrust/torrust-tracker のほかの issue
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
torrust/torrust-tracker#3080 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
torrust/torrust-tracker#3069 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
torrust/torrust-tracker#3058 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
torrust/torrust-tracker#2978 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
torrust/torrust-tracker#2332 ·
メンテナーはふだん 1 日以内に返信
torrust/torrust-tracker の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
difficulty: easy docs help wanted tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
-
bug help wanted ui
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
userFRM/egui-charts#4386 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eliasstravik/herdr-projects#1605 · コメント 1 件 ·