Fixed up the client/server traffic logging.
authorChris Jones <christian.jones@sri.com>
Sun, 16 Dec 2012 17:10:03 -0700
changeset 106 ffb9d27fea79
parent 105 aa895dfae3f6
child 107 3a01bd8e3f8c
Fixed up the client/server traffic logging.
xmpp.go
--- a/xmpp.go	Sun Dec 16 15:54:39 2012 -0700
+++ b/xmpp.go	Sun Dec 16 17:10:03 2012 -0700
@@ -245,7 +245,7 @@
 		buf.Write(c[:n])
 		if c[0] == '\n' || c[0] == '>' {
 			Debug.Log(buf)
-			buf.Reset()
+			buf = bytes.NewBuffer([]uint8(prefix))
 		}
 	}
 	leftover := buf.String()