This commit is contained in:
2026-06-03 20:26:15 +08:00
parent 8ee50a4aa2
commit 26126771f4
+1 -1
View File
@@ -242,7 +242,7 @@ func startMQTTServer(cfg *config, store *store) (*mqtt.Server, string, error) {
// printJSON 将记录编码为 JSON 后按数据包类型着色输出。
func printJSON(record map[string]any) {
printJSONBytes(record, mqtpp.MustJSON(record))
//printJSONBytes(record, mqtpp.MustJSON(record))
}
// printJSONBytes 使用已编码好的 JSON 文本,并根据记录 type 选择控制台颜色。