Production request-time logs aren't reaching the deploy log collector
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- nextjs, typescript
- 領域
- devops, observability
調査の方向性
Start with lib/logger.ts, which writes structured JSON to process.stdout.write in production, and compare it with how the Next.js boot output reaches the deploy log. Reproduce by logging from a request handler and checking whether the line appears in railway logs. Done means request-time logger output shows up in the production deploy log stream. The root cause is not yet identified, so confirm it with the maintainers before you start.
索引モデルが issue の本文から書いたものです。
説明
Copied from DeadantCo/answerLoops#41 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/221 — originally opened by
@NathanTarberton 2026-09-18
What's happening
The production app service's deploy log stream only ever shows container boot output (Next.js startup, migration notices, deprecation warnings). No request-time application logs show up after that — confirmed with railway logs --since 3h --filter "@level:warn" returning nothing, and the raw unfiltered stream staying at a fixed ~24 lines regardless of time range, even though HTTP network logs (a separate Railway feature) prove the app is actively handling requests minutes and hours later.
Why this matters
Any logger.warn / logger.error / logger.info call from inside a request handler is currently invisible in production. This blocked diagnosis of a separate bug (see the companion Telegram webhook issue) and generally means production incidents can't be debugged from logs right now — only from HTTP status codes and timing.
What's been ruled out
- The logger itself writes structured JSON to
process.stdout.writein production (lib/logger.ts) — same mechanism Next.js's own boot output uses, which does show up. - Not a search/filter UI quirk — confirmed via the Railway CLI directly (
railway logs), not just the dashboard.
Open question
Why request-time stdout writes aren't reaching the same collector that captures the initial container boot output. Worth checking whether the process is forking/threading in a way that doesn't inherit the parent's stdout, or whether there's output buffering that never flushes under the actual request-serving code path.
Relevant code
lib/logger.ts
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeadantCo/answerLoopsdev のほかの issue
-
Widget: match the chat bubble color to the rest of the widget対応中かも @sethr07 が今日担当しました。 オープンenhancement frontend help wanted
難易度 2/5 半日 初心者へのやさしさ 75/100
DeadantCo/answerLoopsdev#68 · コメント 3 件 ·
-
Widget: make the chat window fit on small phones対応中かも @sethr07 が今日担当しました。 オープンenhancement frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DeadantCo/answerLoopsdev#67 · コメント 9 件 ·
-
Add 'select all' option to Slack channel picker in Settings対応中かも @sethr07 が今日担当しました。 オープンfrontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DeadantCo/answerLoopsdev#22 · コメント 5 件 ·
-
enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
DeadantCo/answerLoopsdev#140 ·
DeadantCo/answerLoopsdev の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
lingdojo/kana-dojo#34545 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
blocklist addition
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
MetaMask/eth-phishing-detect#315455 ·
メンテナーはふだん 1 日以内に返信
-
area: telegram bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
griffinwork40/agent-afk#5275 ·
メンテナーはふだん 1 日以内に返信
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getopenscreen/openscreen#1667 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
erkamyaman/rust-anything#371 ·
メンテナーはふだん 1 日以内に返信