mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
[优化] 添加清除规则链debug日志接口,修复日志读取长度
This commit is contained in:
@@ -55,7 +55,7 @@ func NewMessage(user, messageType string, msg Msg, metadata Metadata) *Message {
|
||||
MsgType: messageType,
|
||||
Msg: msg,
|
||||
Metadata: metadata,
|
||||
DeBugChan: make(chan DebugData, 100),
|
||||
DeBugChan: make(chan DebugData),
|
||||
EndDeBugChan: make(chan struct{}),
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ func (t *Message) Debug(nodeId, nodeName, debugType, error string) {
|
||||
logrus.Infof("%s handle message '%s'", nodeName, t.MsgType)
|
||||
}
|
||||
debug := DebugData{
|
||||
Ts: time.Now().Format("2006-01-02 15:04:05.000"),
|
||||
Ts: time.Now().Format("2006-01-02 15:04:05"),
|
||||
NodeId: nodeId,
|
||||
MsgId: t.Id,
|
||||
DebugType: debugType,
|
||||
|
||||
Reference in New Issue
Block a user