]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix a status line going to stdout
authorMatt Joiner <anacrolix@gmail.com>
Mon, 9 Mar 2015 06:35:51 +0000 (17:35 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 9 Mar 2015 06:35:51 +0000 (17:35 +1100)
client.go

index 4a70e7c52035cf907aaa81f7c91eee4592310356..e3f377362888cdf5bc8d7c934b032ed6ae0b9457 100644 (file)
--- a/client.go
+++ b/client.go
@@ -202,7 +202,7 @@ func (cl *Client) WriteStatus(_w io.Writer) {
        if addr := cl.ListenAddr(); addr != nil {
                fmt.Fprintf(w, "Listening on %s\n", cl.ListenAddr())
        } else {
-               fmt.Println("Not listening!")
+               fmt.Println(w, "Not listening!")
        }
        fmt.Fprintf(w, "Peer ID: %q\n", cl.peerID)
        fmt.Fprintf(w, "Handshaking: %d\n", cl.handshaking)