Logs can fill a disk without any control

Offen
#3,597 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv

Rechercherichtung

Das betroffene Artefakt ist github-app.{pid}.log; beginne damit, herauszufinden, wo diese Datei erstellt wird und wo wiederholte Fehlerausgaben geschrieben werden. Erledigt ist dies, wenn das Log auf 1 GB begrenzt ist, mit höchstens fünf beibehaltenen Dateien rotiert und die angeforderte Warnung ausgibt, wenn eine Rotation erfolgt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Keine Sprachdaten
Sterne
2.1k
Forks
157
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/app

Alle Issues in github/app

Ähnliche Issues

Weitere Issues zu Desktop Dev

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.