--- a/xmpp/structs.go Mon Sep 30 18:59:37 2013 -0600
+++ b/xmpp/structs.go Mon Sep 30 20:31:25 2013 -0600
@@ -7,13 +7,15 @@
"encoding/xml"
"flag"
"fmt"
- // BUG(cjyar): Doesn't use stringprep. Could try the implementation at
- // "code.google.com/p/go-idn/src/stringprep"
+ "log"
"reflect"
"regexp"
"strings"
)
+// BUG(cjyar): Doesn't use stringprep. Could try the implementation at
+// "code.google.com/p/go-idn/src/stringprep"
+
// JID represents an entity that can communicate with other
// entities. It looks like node@domain/resource. Node and resource are
// sometimes optional.
@@ -260,7 +262,7 @@
func (er *Error) Error() string {
buf, err := xml.Marshal(er)
if err != nil {
- Warn.Log("double bad error: couldn't marshal error")
+ log.Println("double bad error: couldn't marshal error")
return "unreadable error"
}
return string(buf)