flutter / flutter/devtools

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

未关闭
#9,596 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P2 screen: logging
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

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

贡献指南

打开贡献指南

调研方向

首先,在 DevTools 中使用 dart:developer.log,通过结构化消息重现问题,该消息长度超过报告的 1,391 个符号,然后将其与较短的日志进行比较。跟踪日志记录和 Details 显示路径,以找出较长消息在何处丢失其结构化数据。当超过报告长度的消息仍能显示结构化日志详情时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
devtools, observability
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。