Logs can fill a disk without any control

Đang mở
#3,597 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
desktop, observability

Hướng nghiên cứu

Artifact bị ảnh hưởng là github-app.{pid}.log; trước tiên hãy tìm nơi tệp này được tạo và nơi đầu ra lỗi lặp lại được ghi. Hoàn tất khi log được giới hạn ở 1 GB, được xoay vòng với tối đa năm tệp được giữ lại và phát ra cảnh báo được yêu cầu khi việc xoay vòng xảy ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

triage
Feature summary

An error loop may create a log every ms, ending up filling a disk

What problem are you trying to solve?

This is especially true on chromebook, it is quite random, but sometime when I come back and unlock my session, the process start logging "Audio output stream failed: a backend-specific error has occurred: alsa::poll() returned POLLERR" indefinitly (well unmutting the host sound make this disapears) but anyway the log size increase by 5Gb every minutes meaning the disk is full in a jiffy.

The log file with this issue is "github-app.{pid}.log".

Proposed solution

Would it be possible to limit the size of this file to let say 1Gb and make it rolling (keep 5 file maximum) + an alert "warning rolling log file, check why you have so many logs" .

Workflow impact

no need to clean file to continue working, warning on strange alert if there are.

Installation context

No response

Additional context

No response

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
157
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/app

Tất cả issue của github/app

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.