# HG changeset patch # User Chris Jones # Date 1355696695 25200 # Node ID 99e03b33b20da4af94f379fb638b165350262cb8 # Parent f27f78706623ee78ab5d57bb2be54333e4abdabd Fixed reverse logic error on loggers. diff -r f27f78706623 -r 99e03b33b20d 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