Fixed reverse logic error on loggers.
authorChris Jones <christian.jones@sri.com>
Sun, 16 Dec 2012 15:24:55 -0700
changeset 104 99e03b33b20d
parent 103 f27f78706623
child 105 aa895dfae3f6
Fixed reverse logic error on loggers.
stream.go
--- a/stream.go	Sun Dec 16 15:19:45 2012 -0700
+++ b/stream.go	Sun Dec 16 15:24:55 2012 -0700
@@ -80,7 +80,7 @@
 
 func readXml(r io.Reader, ch chan<- interface{},
 extStanza map[string]func(*xml.Name) interface{}) {
-	if _, ok := Debug.(*noLog) ; ok {
+	if _, ok := Debug.(*noLog) ; !ok {
 		pr, pw := io.Pipe()
 		go tee(r, pw, "S: ")
 		r = pr
@@ -194,7 +194,7 @@
 }
 
 func writeXml(w io.Writer, ch <-chan interface{}) {
-	if _, ok := Debug.(*noLog) ; ok {
+	if _, ok := Debug.(*noLog) ; !ok {
 		pr, pw := io.Pipe()
 		go tee(pr, w, "C: ")
 		w = pw