Use the logging API by default.
authorChris Jones <christian.jones@sri.com>
Thu, 19 Jan 2012 16:23:15 -0600
changeset 77 edda99a69002
parent 76 caa722ab8a0f
child 78 a5848c75d270
Use the logging API by default.
examples/interact.go
--- a/examples/interact.go	Thu Jan 19 14:18:39 2012 -0600
+++ b/examples/interact.go	Thu Jan 19 16:23:15 2012 -0600
@@ -16,10 +16,8 @@
 // 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)
-	}
+	xmpp.Log = log.New(os.Stderr, "", 0)
+	xmpp.Loglevel = syslog.LOG_NOTICE
 
 	var jid xmpp.JID
 	flag.Var(&jid, "jid", "JID to log in as")