chore: update the change logs
This commit is contained in:
parent
42288f6998
commit
2c22b7d8e9
|
@ -3,3 +3,13 @@
|
|||
## Enhancements
|
||||
|
||||
## Bug fixes
|
||||
|
||||
- Avoid changing the payload of MQTT messages when printing debug logs [#10091](https://github.com/emqx/emqx/pull/10091).
|
||||
Before this fix, if EMQX receives a message with Payload "e\ne\nc\nc\n2\n\n\n", the log message will be as follows:
|
||||
```
|
||||
2023-03-08T13:28:04.320622+08:00 [debug] mqttx_e34bd582@127.0.0.1:54020 [MQTT] RECV PUBLISH(Q1, R0, D0, Topic=t/1, PacketId=39467, Payload=e, e, c, c, 2, , , )
|
||||
```
|
||||
This is the corresponding log message now:
|
||||
```
|
||||
2023-03-08T14:26:50.935575+08:00 [debug] mqttx_e34bd582@127.0.0.1:54020 [MQTT] RECV PUBLISH(Q1, R0, D0, Topic=t/1, PacketId=39467, Payload=<<"e\ne\nc\nc\n2\n\n\n">>)
|
||||
```
|
||||
|
|
|
@ -3,3 +3,13 @@
|
|||
## 增强
|
||||
|
||||
## 修复
|
||||
|
||||
- 避免打印 debug 日志的时候改动 MQTT 消息的 Payload 的内容 [#10091](https://github.com/emqx/emqx/pull/10091)
|
||||
在这个修复之前,如果 EMQX 收到一个 Payload 为 "e\ne\nc\nc\n2\n\n\n" 的消息,日志打印会变成这样:
|
||||
```
|
||||
2023-03-08T13:28:04.320622+08:00 [debug] mqttx_e34bd582@127.0.0.1:54020 [MQTT] RECV PUBLISH(Q1, R0, D0, Topic=t/1, PacketId=39467, Payload=e, e, c, c, 2, , , )
|
||||
```
|
||||
这是此修复之后的样子:
|
||||
```
|
||||
2023-03-08T14:26:50.935575+08:00 [debug] mqttx_e34bd582@127.0.0.1:54020 [MQTT] RECV PUBLISH(Q1, R0, D0, Topic=t/1, PacketId=39467, Payload=<<"e\ne\nc\nc\n2\n\n\n">>)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue