JournalHandler incorrectly send exception info
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- observability
Rechercherichtung
Start in systemd/journal.py at lines 581-586, then read the referenced Python logging implementations for exc_text, exc_info, and stack_info. Confirm how JournalHandler currently sends exception data, and consider the requested exception representation and stack information; done means the journal receives the useful exception details without the unnecessary tuple stringification.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
https://github.com/systemd/python-systemd/blob/master/systemd/journal.py#L581-L586
record.exc_text is a cache for text representation of record.exc_info https://github.com/python/cpython/blob/master/Lib/logging/__init__.py#L335
record.exc_info is a tuple https://github.com/python/cpython/blob/master/Lib/logging/__init__.py#L1579
So send str(record.exc_info) is unnecessary. There is a default implementation in formatter https://github.com/python/cpython/blob/master/Lib/logging/__init__.py#L681-L689
Also we send information about exception but no record.stack_info it's could be useful as well.
- Vorherrschende Sprache
- C
- Sterne
- 522
- Forks
- 79
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus systemd/python-systemd
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
systemd/python-systemd#177 · 1 Kommentar · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
systemd/python-systemd#169 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
systemd/python-systemd#167 · 19 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
systemd/python-systemd#152 · 1 Kommentar · 13 Reaktionen ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
systemd/python-systemd#146 · 2 Kommentare ·
Alle Issues in systemd/python-systemd
Ähnliche Issues
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 60/100
-
Nmap
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
flang:fir-hlfir
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
llvm/llvm-project#225935 ·