Fixed reverse logic error on loggers.
--- 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