flutter / flutter/devtools

Logging does not display structured log details if a message exceeds certain amount of symbols

Offen
#9,596 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
P2 screen: logging
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

I log results from my service calls using `dart:developer.log`. From my assumption, `DevTools` fails to display structured log details whenever message of a log exceeds certain amount of symbols.

Smaller logs are displayed as expected, with details presented:

Image

However, if I try to log JWT token (1391 symbols) , the `Details` section will display just the message string

Image

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing the issue in DevTools with dart:developer.log using a structured message longer than the reported 1,391 symbols, then compare it with a shorter log. Trace the logging and Details display path to find where the longer message loses its structured data. Done means structured log details remain visible for messages beyond the reported length.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart
Bereich
devtools, observability
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

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