diff -r 03a923eb5c01 -r caa722ab8a0f examples/interact.go --- a/examples/interact.go Thu Jan 19 13:41:42 2012 -0600 +++ b/examples/interact.go Thu Jan 19 14:18:39 2012 -0600 @@ -9,12 +9,18 @@ "flag" "fmt" "log" + "log/syslog" "os" ) // Demonstrate the API, and allow the user to interact with an XMPP // server via the terminal. func main() { + if false { + xmpp.Loglevel = syslog.LOG_DEBUG + xmpp.Log = log.New(os.Stderr, "", 0) + } + var jid xmpp.JID flag.Var(&jid, "jid", "JID to log in as") var pw *string = flag.String("pw", "", "password")