Production request-time logs aren't reaching the deploy log collector
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- next.js, typescript
- Lĩnh vực
- observability
Hướng nghiên cứu
Start by reading lib/logger.ts and tracing how request-time log calls reach stdout in the production app process. Compare that path with the boot output captured by Railway, checking the process and buffering possibilities raised in the issue. Done means request-time application logs are visible in the production deploy log stream.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 16
- Fork
- 2
- Merge trung bình
- 7 giờ 22 phút
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của answerLoops/answerLoops
-
Widget: match the chat bubble color to the rest of the widgetCó thể đã có người làm @uchiha-suraj đã nhận 7 ngày trước. Đang mởenhancement help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
answerLoops/answerLoops#345 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Widget: make the chat window fit on small phonesCó thể đã có người làm @anushreemehta6 đã nhận 8 ngày trước. Đang mởenhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
answerLoops/answerLoops#344 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
answerLoops/answerLoops#17 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Rank knowledge gaps and articles by frequency for reviewer follow-upCó thể đã có người làm @NathanTarbert đã nhận 2 ngày trước. Đang mở
answerLoops/answerLoops#387 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của answerLoops/answerLoops
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ranxianglei/billion-context#3583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
callstackincubator/simlock#673 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation v3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
anomalyco/opencode#56380 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày