diff --git a/logger.go b/logger.go index c8fb361..69576ed 100644 --- a/logger.go +++ b/logger.go @@ -150,7 +150,7 @@ func (w *wsWriter) Write(p []byte) (n int, err error) { if nil == wsLoggerConnect { return 0, nil } - + p = []byte(" " + string(p)) allConnList := wsLoggerConnect.GetCtxList() for _, conn := range allConnList { _ = conn.Session.Write(p)