writes log

This commit is contained in:
llaoj 2022-11-14 09:32:24 +08:00
parent 73f0ca5a2f
commit 1c4427af53

View File

@ -194,7 +194,7 @@ func (wt *WebTTY) handleMasterReadEvent(data []byte, line *[]byte) error {
if err != nil { if err != nil {
return errors.Wrapf(err, "failed to marshal arguments map") return errors.Wrapf(err, "failed to marshal arguments map")
} }
log.Printf("[wlog] %v\n", line) //log.Printf("[wlog] %v\n", line)
log.Printf("[wlog] %s %s\n", utils.FormatWriteLog(line), string(argumentsByte)) log.Printf("[wlog] %s %s\n", utils.FormatWriteLog(line), string(argumentsByte))
*line = nil *line = nil
} }