examples/interact.go
changeset 76 caa722ab8a0f
parent 68 d693ecc11f29
child 77 edda99a69002
--- 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")